#2F2974#2F2974
#2F2974 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.124 H 281.0°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2974 |
|---|---|
| RGB | rgb(47, 41, 116) |
| HSL | hsl(245, 48%, 31%) |
| HSV | hsv(245, 65%, 45%) |
| CMYK | cmyk(59.5%, 64.7%, 0%, 54.5%) |
| CIE-LAB | lab(21.77, 26.01, -42.40) |
| CIE-LCH | lch(21.77, 49.74, 301.52°) |
| OKLab | oklab(33.64% 0.0237 -0.1218) |
| OKLCH | oklch(33.64% 0.124 281) |
| XYZ | xyz(5.1166, 3.4508, 16.9161) |
| Luminance | 0.0345 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.75
Darkslateblue
#483D8B
ΔE00 6.72
Royal
#0C1793
ΔE00 7.53
Blueberry
#464196
ΔE00 8.18
Indigo (survey)
#380282
ΔE00 8.60
Marine
#042E60
ΔE00 8.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2974 #6E7429
analogous
#294874 #2F2974 #542974
triadic
#2F2974 #742F29 #29742F
tetradic
#2F2974 #742948 #6E7429 #297454
square
#2F2974 #742948 #6E7429 #297454
split-complementary
#2F2974 #745429 #487429
monochromatic
#0A091A #1D1947 #2F2974 #4139A1 #5D55C3
Accessibility & contrast
On white
12.42
#2F2974 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#2F2974 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2974
12.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2974 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2974 | 1.00 | 12.42 | 1.69 | 12.42 |
| #FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#003172
Tritanopia (blue-blind)
#093B4A
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2f2974; /* rgb */ color: rgb(47, 41, 116); /* oklch */ color: oklch(33.6% 0.124 281.0);
Tailwind
colors: {
custom: {
50: '#6f639d',
500: '#2f2974',
950: '#000000',
},
}SCSS
$custom: #2f2974; $custom-light: #6f639d; $custom-dark: #000000;
JSON
{
"hex": "#2f2974",
"rgb": {
"r": 47,
"g": 41,
"b": 116
},
"hsl": {
"h": 244.8,
"s": 47.771,
"l": 30.784
},
"oklch": {
"l": 0.33635,
"c": 0.12409,
"h": 281
},
"luminance": 0.03451
}Semantic roles & 50–950 ramp
primary
#2F2974
secondary
#9FA653
accent
#D750CD
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E