#2F1F8A#2F1F8A
#2F1F8A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.166 H 279.8°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1F8A |
|---|---|
| RGB | rgb(47, 31, 138) |
| HSL | hsl(249, 63%, 33%) |
| HSV | hsv(249, 78%, 54%) |
| CMYK | cmyk(65.9%, 77.5%, 0%, 45.9%) |
| CIE-LAB | lab(21.65, 39.52, -56.52) |
| CIE-LCH | lch(21.65, 68.96, 304.96°) |
| OKLab | oklab(34.19% 0.0283 -0.1631) |
| OKLCH | oklch(34.19% 0.166 279.8) |
| XYZ | xyz(6.2483, 3.4188, 24.3705) |
| Luminance | 0.0342 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.34
Midnight Blue
#191970
ΔE00 4.79
Indigo (survey)
#380282
ΔE00 4.95
Cobalt Blue
#030AA7
ΔE00 5.48
Indigo Blue
#3A18B1
ΔE00 5.76
Darkblue
#00008B
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1F8A #7A8A1F
analogous
#1F448A #2F1F8A #641F8A
triadic
#2F1F8A #8A2F1F #1F8A2F
tetradic
#2F1F8A #8A1F44 #7A8A1F #1F8A64
square
#2F1F8A #8A1F44 #7A8A1F #1F8A64
split-complementary
#2F1F8A #8A641F #448A1F
monochromatic
#0D0926 #1E1458 #2F1F8A #402ABC #614CD7
Accessibility & contrast
On white
12.47
#2F1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#2F1F8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1F8A
12.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1F8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1F8A | 1.00 | 12.47 | 1.68 | 12.47 |
| #FFFFFF | 12.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2f1f8a; /* rgb */ color: rgb(47, 31, 138); /* oklch */ color: oklch(34.2% 0.166 279.8);
Tailwind
colors: {
custom: {
50: '#755dad',
500: '#2f1f8a',
950: '#000000',
},
}SCSS
$custom: #2f1f8a; $custom-light: #755dad; $custom-dark: #000000;
JSON
{
"hex": "#2f1f8a",
"rgb": {
"r": 47,
"g": 31,
"b": 138
},
"hsl": {
"h": 248.972,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.34194,
"c": 0.16558,
"h": 279.8
},
"luminance": 0.03419
}Semantic roles & 50–950 ramp
primary
#2F1F8A
secondary
#A9BA4B
accent
#E641CE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F