#2C1D7D#2C1D7D
#2C1D7D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.152 H 280.8°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1D7D |
|---|---|
| RGB | rgb(44, 29, 125) |
| HSL | hsl(249, 62%, 30%) |
| HSV | hsv(249, 77%, 49%) |
| CMYK | cmyk(64.8%, 76.8%, 0%, 51%) |
| CIE-LAB | lab(19.62, 36.03, -51.68) |
| CIE-LCH | lch(19.62, 63.00, 304.89°) |
| OKLab | oklab(32.28% 0.0284 -0.1491) |
| OKLCH | oklch(32.28% 0.152 280.8) |
| XYZ | xyz(5.1786, 2.8945, 19.6839) |
| Luminance | 0.0290 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.06
Royal
#0C1793
ΔE00 4.29
Indigo (survey)
#380282
ΔE00 4.85
Dark Royal Blue
#02066F
ΔE00 5.77
Navy
#000080
ΔE00 5.95
Darkblue
#00008B
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1D7D #6E7D1D
analogous
#1D3E7D #2C1D7D #5C1D7D
triadic
#2C1D7D #7D2C1D #1D7D2C
tetradic
#2C1D7D #7D1D3E #6E7D1D #1D7D5C
square
#2C1D7D #7D1D3E #6E7D1D #1D7D5C
split-complementary
#2C1D7D #7D5C1D #3E7D1D
monochromatic
#09061A #1B114B #2C1D7D #3D29AF #5841D3
Accessibility & contrast
On white
13.30
#2C1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2C1D7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1D7D
13.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1D7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1D7D | 1.00 | 13.30 | 1.58 | 13.30 |
| #FFFFFF | 13.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2c1d7d; /* rgb */ color: rgb(44, 29, 125); /* oklch */ color: oklch(32.3% 0.152 280.8);
Tailwind
colors: {
custom: {
50: '#715ba4',
500: '#2c1d7d',
950: '#000000',
},
}SCSS
$custom: #2c1d7d; $custom-light: #715ba4; $custom-dark: #000000;
JSON
{
"hex": "#2c1d7d",
"rgb": {
"r": 44,
"g": 29,
"b": 125
},
"hsl": {
"h": 249.375,
"s": 62.338,
"l": 30.196
},
"oklch": {
"l": 0.32283,
"c": 0.15178,
"h": 280.8
},
"luminance": 0.02895
}Semantic roles & 50–950 ramp
primary
#2C1D7D
secondary
#A0B145
accent
#E542CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F