#2F337E#2F337E
#2F337E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.4% C 0.125 H 276.0°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).
Color values
| HEX | #2F337E |
|---|---|
| RGB | rgb(47, 51, 126) |
| HSL | hsl(237, 46%, 34%) |
| HSV | hsv(237, 63%, 49%) |
| CMYK | cmyk(62.7%, 59.5%, 0%, 50.6%) |
| CIE-LAB | lab(25.19, 22.86, -43.19) |
| CIE-LCH | lch(25.19, 48.87, 297.89°) |
| OKLab | oklab(36.42% 0.013 -0.1241) |
| OKLCH | oklch(36.42% 0.125 276) |
| XYZ | xyz(6.1208, 4.4779, 20.2764) |
| Luminance | 0.0448 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.90
Blueberry
#464196
ΔE00 5.73
Sapphire (survey)
#2138AB
ΔE00 6.98
Midnight Blue
#191970
ΔE00 7.36
Marine
#042E60
ΔE00 7.67
Marine Blue
#01386A
ΔE00 8.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F337E #7E7A2F
analogous
#2F5B7E #2F337E #532F7E
triadic
#2F337E #7E2F33 #337E2F
tetradic
#2F337E #7E2F5B #7E7A2F #2F7E53
square
#2F337E #7E2F5B #7E7A2F #2F7E53
split-complementary
#2F337E #7E532F #5B7E2F
monochromatic
#0E0F25 #1E2151 #2F337E #4045AB #6368C5
Accessibility & contrast
On white
11.08
#2F337E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#2F337E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F337E
11.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F337E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F337E | 1.00 | 11.08 | 1.90 | 11.08 |
| #FFFFFF | 11.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2f337e; /* rgb */ color: rgb(47, 51, 126); /* oklch */ color: oklch(36.4% 0.125 276.0);
Tailwind
colors: {
custom: {
50: '#706aa4',
500: '#2f337e',
950: '#000000',
},
}SCSS
$custom: #2f337e; $custom-light: #706aa4; $custom-dark: #000000;
JSON
{
"hex": "#2f337e",
"rgb": {
"r": 47,
"g": 51,
"b": 126
},
"hsl": {
"h": 236.962,
"s": 45.665,
"l": 33.922
},
"oklch": {
"l": 0.36421,
"c": 0.12474,
"h": 276
},
"luminance": 0.04478
}Semantic roles & 50–950 ramp
primary
#2F337E
secondary
#ACA85D
accent
#CF52D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F