Skip to content

#261952

≈ midnightblue · rgb(38, 25, 82)
Color formats
HEX#261952
RGBrgb(38, 25, 82)
HSLhsl(254, 53%, 21%)
HSVhsv(254, 70%, 32%)
OKLCHoklch(27% 0.1 288)
CMYKcmyk(54%, 70%, 0%, 68%)
Contrast & accessibility
On white15.63:1AA pass
On black1.34:1below AA
Best text color#FFFFFF
Nearest CSS name: midnightblue
Copy-ready code
CSS custom properties
:root {
  --midnightblue: #261952;
  --midnightblue-rgb: 38 25 82;
  --midnightblue-oklch: oklch(27% 0.1 288);
}
The space-separated triple lets you set alpha without a second variable:
background: rgb(var(--midnightblue-rgb) / 40%);
Tailwind (arbitrary value)
bg-[#261952] text-[#261952] border-[#261952]
Shades & tints
50
#E1DFE9
100
#CBC6DB
200
#9B8FC4
300
#6953B3
400
#453287
500
#261952
600
#201643
700
#1B1334
800
#140F26
900
#0E0B18
950
#0A0812
Color harmonies
Complementary
#455219
Analogous −30°
#192852
Analogous +30°
#431952
Triadic +120°
#522619
Triadic −120°
#195226
About this color

#261952 is a color with the RGB value rgb(38, 25, 82). Its closest CSS named color is "midnightblue". On this page you'll find every format (HEX, RGB, HSL, HSV, OKLCH, CMYK), WCAG contrast against white and black, a full 50–950 shade scale, and complementary, analogous and triadic harmonies — each linking to its own color page.

Related

Convert #261952 to other formats

Palettes with a similar color

Gradients with a similar color

✓ Copied