#2F337D#2F337D
#2F337D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.3% C 0.123 H 276.0°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).
Color values
| HEX | #2F337D |
|---|---|
| RGB | rgb(47, 51, 125) |
| HSL | hsl(237, 45%, 34%) |
| HSV | hsv(237, 62%, 49%) |
| CMYK | cmyk(62.4%, 59.2%, 0%, 51%) |
| CIE-LAB | lab(25.11, 22.50, -42.69) |
| CIE-LCH | lch(25.11, 48.25, 297.79°) |
| OKLab | oklab(36.34% 0.013 -0.1226) |
| OKLCH | oklch(36.34% 0.123 276) |
| XYZ | xyz(6.0566, 4.4522, 19.9383) |
| Luminance | 0.0445 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.95
Blueberry
#464196
ΔE00 5.82
Sapphire (survey)
#2138AB
ΔE00 7.15
Midnight Blue
#191970
ΔE00 7.37
Marine
#042E60
ΔE00 7.58
Marine Blue
#01386A
ΔE00 8.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F337D #7D792F
analogous
#2F5A7D #2F337D #522F7D
triadic
#2F337D #7D2F33 #337D2F
tetradic
#2F337D #7D2F5A #7D792F #2F7D52
square
#2F337D #7D2F5A #7D792F #2F7D52
split-complementary
#2F337D #7D522F #5A7D2F
monochromatic
#0E0F24 #1E2151 #2F337D #4045A9 #6267C4
Accessibility & contrast
On white
11.11
#2F337D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#2F337D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F337D
11.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F337D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F337D | 1.00 | 11.11 | 1.89 | 11.11 |
| #FFFFFF | 11.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2f337d; /* rgb */ color: rgb(47, 51, 125); /* oklch */ color: oklch(36.3% 0.123 276.0);
Tailwind
colors: {
custom: {
50: '#706aa3',
500: '#2f337d',
950: '#000000',
},
}SCSS
$custom: #2f337d; $custom-light: #706aa3; $custom-dark: #000000;
JSON
{
"hex": "#2f337d",
"rgb": {
"r": 47,
"g": 51,
"b": 125
},
"hsl": {
"h": 236.923,
"s": 45.349,
"l": 33.725
},
"oklch": {
"l": 0.36337,
"c": 0.12327,
"h": 276
},
"luminance": 0.04453
}Semantic roles & 50–950 ramp
primary
#2F337D
secondary
#ABA75D
accent
#CE53D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F