#2D1F86#2D1F86
#2D1F86 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.161 H 279.4°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1F86 |
|---|---|
| RGB | rgb(45, 31, 134) |
| HSL | hsl(248, 62%, 32%) |
| HSV | hsv(248, 77%, 53%) |
| CMYK | cmyk(66.4%, 76.9%, 0%, 47.5%) |
| CIE-LAB | lab(21.05, 37.98, -55.00) |
| CIE-LCH | lch(21.05, 66.84, 304.62°) |
| OKLab | oklab(33.6% 0.0263 -0.1588) |
| OKLCH | oklch(33.6% 0.161 279.4) |
| XYZ | xyz(5.8739, 3.2586, 22.8691) |
| Luminance | 0.0326 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.48
Midnight Blue
#191970
ΔE00 4.16
Indigo (survey)
#380282
ΔE00 5.03
Cobalt Blue
#030AA7
ΔE00 5.88
Darkblue
#00008B
ΔE00 5.88
Navy
#000080
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1F86 #78861F
analogous
#1F4586 #2D1F86 #601F86
triadic
#2D1F86 #862D1F #1F862D
tetradic
#2D1F86 #861F45 #78861F #1F8660
square
#2D1F86 #861F45 #78861F #1F8660
split-complementary
#2D1F86 #86601F #45861F
monochromatic
#0C0823 #1C1454 #2D1F86 #3E2AB8 #5D4AD5
Accessibility & contrast
On white
12.71
#2D1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2D1F86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1F86
12.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1F86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1F86 | 1.00 | 12.71 | 1.65 | 12.71 |
| #FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2d1f86; /* rgb */ color: rgb(45, 31, 134); /* oklch */ color: oklch(33.6% 0.161 279.4);
Tailwind
colors: {
custom: {
50: '#735daa',
500: '#2d1f86',
950: '#000000',
},
}SCSS
$custom: #2d1f86; $custom-light: #735daa; $custom-dark: #000000;
JSON
{
"hex": "#2d1f86",
"rgb": {
"r": 45,
"g": 31,
"b": 134
},
"hsl": {
"h": 248.155,
"s": 62.424,
"l": 32.353
},
"oklch": {
"l": 0.33603,
"c": 0.16095,
"h": 279.4
},
"luminance": 0.03259
}Semantic roles & 50–950 ramp
primary
#2D1F86
secondary
#A9B849
accent
#E542CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F