#2C1F86#2C1F86
#2C1F86 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.161 H 278.9°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1F86 |
|---|---|
| RGB | rgb(44, 31, 134) |
| HSL | hsl(248, 62%, 32%) |
| HSV | hsv(248, 77%, 53%) |
| CMYK | cmyk(67.2%, 76.9%, 0%, 47.5%) |
| CIE-LAB | lab(20.97, 37.86, -55.15) |
| CIE-LCH | lch(20.97, 66.89, 304.47°) |
| OKLab | oklab(33.52% 0.0249 -0.1592) |
| OKLCH | oklch(33.52% 0.161 278.9) |
| XYZ | xyz(5.8304, 3.2362, 22.8670) |
| Luminance | 0.0324 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.40
Midnight Blue
#191970
ΔE00 4.09
Indigo (survey)
#380282
ΔE00 5.10
Darkblue
#00008B
ΔE00 5.84
Cobalt Blue
#030AA7
ΔE00 5.85
Navy
#000080
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1F86 #79861F
analogous
#1F4586 #2C1F86 #601F86
triadic
#2C1F86 #862C1F #1F862C
tetradic
#2C1F86 #861F45 #79861F #1F8660
square
#2C1F86 #861F45 #79861F #1F8660
split-complementary
#2C1F86 #86601F #45861F
monochromatic
#0B0823 #1C1454 #2C1F86 #3C2AB8 #5C4AD5
Accessibility & contrast
On white
12.75
#2C1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2C1F86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1F86
12.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1F86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1F86 | 1.00 | 12.75 | 1.65 | 12.75 |
| #FFFFFF | 12.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2c1f86; /* rgb */ color: rgb(44, 31, 134); /* oklch */ color: oklch(33.5% 0.161 278.9);
Tailwind
colors: {
custom: {
50: '#725daa',
500: '#2c1f86',
950: '#000000',
},
}SCSS
$custom: #2c1f86; $custom-light: #725daa; $custom-dark: #000000;
JSON
{
"hex": "#2c1f86",
"rgb": {
"r": 44,
"g": 31,
"b": 134
},
"hsl": {
"h": 247.573,
"s": 62.424,
"l": 32.353
},
"oklch": {
"l": 0.33521,
"c": 0.16116,
"h": 278.9
},
"luminance": 0.03237
}Semantic roles & 50–950 ramp
primary
#2C1F86
secondary
#AAB849
accent
#E542D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F