#2C1F87#2C1F87
#2C1F87 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.162 H 278.7°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1F87 |
|---|---|
| RGB | rgb(44, 31, 135) |
| HSL | hsl(248, 63%, 33%) |
| HSV | hsv(248, 77%, 53%) |
| CMYK | cmyk(67.4%, 77%, 0%, 47.1%) |
| CIE-LAB | lab(21.07, 38.18, -55.60) |
| CIE-LCH | lch(21.07, 67.45, 304.48°) |
| OKLab | oklab(33.63% 0.0246 -0.1605) |
| OKLCH | oklch(33.63% 0.162 278.7) |
| XYZ | xyz(5.9005, 3.2642, 23.2361) |
| Luminance | 0.0326 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.31
Midnight Blue
#191970
ΔE00 4.22
Indigo (survey)
#380282
ΔE00 5.10
Cobalt Blue
#030AA7
ΔE00 5.72
Darkblue
#00008B
ΔE00 5.80
Navy
#000080
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1F87 #7A871F
analogous
#1F4687 #2C1F87 #601F87
triadic
#2C1F87 #872C1F #1F872C
tetradic
#2C1F87 #871F46 #7A871F #1F8760
square
#2C1F87 #871F46 #7A871F #1F8760
split-complementary
#2C1F87 #87601F #46871F
monochromatic
#0C0823 #1C1455 #2C1F87 #3C2AB9 #5C4BD6
Accessibility & contrast
On white
12.70
#2C1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2C1F87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1F87
12.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1F87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1F87 | 1.00 | 12.70 | 1.65 | 12.70 |
| #FFFFFF | 12.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2c1f87; /* rgb */ color: rgb(44, 31, 135); /* oklch */ color: oklch(33.6% 0.162 278.7);
Tailwind
colors: {
custom: {
50: '#735dab',
500: '#2c1f87',
950: '#000000',
},
}SCSS
$custom: #2c1f87; $custom-light: #735dab; $custom-dark: #000000;
JSON
{
"hex": "#2c1f87",
"rgb": {
"r": 44,
"g": 31,
"b": 135
},
"hsl": {
"h": 247.5,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.33628,
"c": 0.16243,
"h": 278.7
},
"luminance": 0.03265
}Semantic roles & 50–950 ramp
primary
#2C1F87
secondary
#AAB84A
accent
#E642D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F