#2C1E87#2C1E87
#2C1E87 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.163 H 278.9°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1E87 |
|---|---|
| RGB | rgb(44, 30, 135) |
| HSL | hsl(248, 64%, 32%) |
| HSV | hsv(248, 78%, 53%) |
| CMYK | cmyk(67.4%, 77.8%, 0%, 47.1%) |
| CIE-LAB | lab(20.88, 38.74, -55.92) |
| CIE-LCH | lch(20.88, 68.03, 304.71°) |
| OKLab | oklab(33.49% 0.0253 -0.1615) |
| OKLCH | oklch(33.49% 0.163 278.9) |
| XYZ | xyz(5.8748, 3.2128, 23.2275) |
| Luminance | 0.0321 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.21
Midnight Blue
#191970
ΔE00 4.21
Indigo (survey)
#380282
ΔE00 4.88
Cobalt Blue
#030AA7
ΔE00 5.59
Darkblue
#00008B
ΔE00 5.60
Navy
#000080
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1E87 #79871E
analogous
#1E4587 #2C1E87 #611E87
triadic
#2C1E87 #872C1E #1E872C
tetradic
#2C1E87 #871E45 #79871E #1E8761
square
#2C1E87 #871E45 #79871E #1E8761
split-complementary
#2C1E87 #87611E #45871E
monochromatic
#0B0823 #1C1355 #2C1E87 #3C29B9 #5C49D7
Accessibility & contrast
On white
12.78
#2C1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2C1E87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1E87
12.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1E87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1E87 | 1.00 | 12.78 | 1.64 | 12.78 |
| #FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2c1e87; /* rgb */ color: rgb(44, 30, 135); /* oklch */ color: oklch(33.5% 0.163 278.9);
Tailwind
colors: {
custom: {
50: '#735cab',
500: '#2c1e87',
950: '#000000',
},
}SCSS
$custom: #2c1e87; $custom-light: #735cab; $custom-dark: #000000;
JSON
{
"hex": "#2c1e87",
"rgb": {
"r": 44,
"g": 30,
"b": 135
},
"hsl": {
"h": 248,
"s": 63.636,
"l": 32.353
},
"oklch": {
"l": 0.3349,
"c": 0.16344,
"h": 278.9
},
"luminance": 0.03213
}Semantic roles & 50–950 ramp
primary
#2C1E87
secondary
#AAB948
accent
#E741D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F