#2F2972#2F2972
#2F2972 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.121 H 281.3°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2972 |
|---|---|
| RGB | rgb(47, 41, 114) |
| HSL | hsl(245, 47%, 30%) |
| HSV | hsv(245, 64%, 45%) |
| CMYK | cmyk(58.8%, 64%, 0%, 55.3%) |
| CIE-LAB | lab(21.60, 25.31, -41.39) |
| CIE-LCH | lch(21.60, 48.52, 301.44°) |
| OKLab | oklab(33.46% 0.0238 -0.1188) |
| OKLCH | oklch(33.46% 0.121 281.3) |
| XYZ | xyz(5.0015, 3.4048, 16.3100) |
| Luminance | 0.0340 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.86
Darkslateblue
#483D8B
ΔE00 6.84
Royal
#0C1793
ΔE00 7.85
Blueberry
#464196
ΔE00 8.36
Marine
#042E60
ΔE00 8.61
Dark Indigo
#1F0954
ΔE00 8.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2972 #6C7229
analogous
#294772 #2F2972 #542972
triadic
#2F2972 #722F29 #29722F
tetradic
#2F2972 #722947 #6C7229 #297254
square
#2F2972 #722947 #6C7229 #297254
split-complementary
#2F2972 #725429 #477229
monochromatic
#0A0918 #1C1945 #2F2972 #42399F #5D54C1
Accessibility & contrast
On white
12.49
#2F2972 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#2F2972 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2972
12.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2972 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2972 | 1.00 | 12.49 | 1.68 | 12.49 |
| #FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#0D3B49
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2f2972; /* rgb */ color: rgb(47, 41, 114); /* oklch */ color: oklch(33.5% 0.121 281.3);
Tailwind
colors: {
custom: {
50: '#6f639b',
500: '#2f2972',
950: '#000000',
},
}SCSS
$custom: #2f2972; $custom-light: #6f639b; $custom-dark: #000000;
JSON
{
"hex": "#2f2972",
"rgb": {
"r": 47,
"g": 41,
"b": 114
},
"hsl": {
"h": 244.932,
"s": 47.097,
"l": 30.392
},
"oklch": {
"l": 0.33459,
"c": 0.1212,
"h": 281.3
},
"luminance": 0.03405
}Semantic roles & 50–950 ramp
primary
#2F2972
secondary
#9DA453
accent
#D751CC
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E