#2F1D8B#2F1D8B
#2F1D8B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.169 H 280.0°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1D8B |
|---|---|
| RGB | rgb(47, 29, 139) |
| HSL | hsl(250, 65%, 33%) |
| HSV | hsv(250, 79%, 55%) |
| CMYK | cmyk(66.2%, 79.1%, 0%, 45.5%) |
| CIE-LAB | lab(21.38, 40.90, -57.58) |
| CIE-LCH | lch(21.38, 70.63, 305.39°) |
| OKLab | oklab(34.04% 0.0293 -0.1662) |
| OKLCH | oklch(34.04% 0.169 280) |
| XYZ | xyz(6.2704, 3.3467, 24.7366) |
| Luminance | 0.0335 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.12
Indigo (survey)
#380282
ΔE00 4.55
Midnight Blue
#191970
ΔE00 4.92
Cobalt Blue
#030AA7
ΔE00 5.12
Darkblue
#00008B
ΔE00 5.49
Indigo Blue
#3A18B1
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1D8B #798B1D
analogous
#1D428B #2F1D8B #661D8B
triadic
#2F1D8B #8B2F1D #1D8B2F
tetradic
#2F1D8B #8B1D42 #798B1D #1D8B66
square
#2F1D8B #8B1D42 #798B1D #1D8B66
split-complementary
#2F1D8B #8B661D #428B1D
monochromatic
#0D0826 #1E1258 #2F1D8B #4028BE #6149D9
Accessibility & contrast
On white
12.58
#2F1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#2F1D8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1D8B
12.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1D8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1D8B | 1.00 | 12.58 | 1.67 | 12.58 |
| #FFFFFF | 12.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2f1d8b; /* rgb */ color: rgb(47, 29, 139); /* oklch */ color: oklch(34.0% 0.169 280.0);
Tailwind
colors: {
custom: {
50: '#755cae',
500: '#2f1d8b',
950: '#000000',
},
}SCSS
$custom: #2f1d8b; $custom-light: #755cae; $custom-dark: #000000;
JSON
{
"hex": "#2f1d8b",
"rgb": {
"r": 47,
"g": 29,
"b": 139
},
"hsl": {
"h": 249.818,
"s": 65.476,
"l": 32.941
},
"oklch": {
"l": 0.34039,
"c": 0.16879,
"h": 280
},
"luminance": 0.03347
}Semantic roles & 50–950 ramp
primary
#2F1D8B
secondary
#A8BB49
accent
#E83FCD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F