#2F1D8A#2F1D8A
#2F1D8A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.168 H 280.2°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1D8A |
|---|---|
| RGB | rgb(47, 29, 138) |
| HSL | hsl(250, 65%, 33%) |
| HSV | hsv(250, 79%, 54%) |
| CMYK | cmyk(65.9%, 79%, 0%, 45.9%) |
| CIE-LAB | lab(21.27, 40.59, -57.14) |
| CIE-LCH | lch(21.27, 70.09, 305.39°) |
| OKLab | oklab(33.93% 0.0295 -0.1649) |
| OKLCH | oklch(33.93% 0.168 280.2) |
| XYZ | xyz(6.1976, 3.3176, 24.3536) |
| Luminance | 0.0332 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.18
Indigo (survey)
#380282
ΔE00 4.52
Midnight Blue
#191970
ΔE00 4.79
Cobalt Blue
#030AA7
ΔE00 5.23
Darkblue
#00008B
ΔE00 5.50
Indigo Blue
#3A18B1
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1D8A #788A1D
analogous
#1D428A #2F1D8A #651D8A
triadic
#2F1D8A #8A2F1D #1D8A2F
tetradic
#2F1D8A #8A1D42 #788A1D #1D8A65
square
#2F1D8A #8A1D42 #788A1D #1D8A65
split-complementary
#2F1D8A #8A651D #428A1D
monochromatic
#0D0825 #1E1257 #2F1D8A #4028BD #6049D9
Accessibility & contrast
On white
12.62
#2F1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#2F1D8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1D8A
12.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1D8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1D8A | 1.00 | 12.62 | 1.66 | 12.62 |
| #FFFFFF | 12.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2f1d8a; /* rgb */ color: rgb(47, 29, 138); /* oklch */ color: oklch(33.9% 0.168 280.2);
Tailwind
colors: {
custom: {
50: '#755cad',
500: '#2f1d8a',
950: '#000000',
},
}SCSS
$custom: #2f1d8a; $custom-light: #755cad; $custom-dark: #000000;
JSON
{
"hex": "#2f1d8a",
"rgb": {
"r": 47,
"g": 29,
"b": 138
},
"hsl": {
"h": 249.908,
"s": 65.269,
"l": 32.745
},
"oklch": {
"l": 0.33931,
"c": 0.16755,
"h": 280.2
},
"luminance": 0.03318
}Semantic roles & 50–950 ramp
primary
#2F1D8A
secondary
#A8BB48
accent
#E840CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F