#2F337B#2F337B
#2F337B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.120 H 276.2°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).
Color values
| HEX | #2F337B |
|---|---|
| RGB | rgb(47, 51, 123) |
| HSL | hsl(237, 45%, 33%) |
| HSV | hsv(237, 62%, 48%) |
| CMYK | cmyk(61.8%, 58.5%, 0%, 51.8%) |
| CIE-LAB | lab(24.96, 21.77, -41.68) |
| CIE-LCH | lch(24.96, 47.02, 297.58°) |
| OKLab | oklab(36.17% 0.0129 -0.1196) |
| OKLCH | oklch(36.17% 0.12 276.2) |
| XYZ | xyz(5.9301, 4.4016, 19.2721) |
| Luminance | 0.0440 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.07
Blueberry
#464196
ΔE00 6.02
Marine
#042E60
ΔE00 7.40
Midnight Blue
#191970
ΔE00 7.41
Sapphire (survey)
#2138AB
ΔE00 7.49
Marine Blue
#01386A
ΔE00 8.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F337B #7B772F
analogous
#2F597B #2F337B #512F7B
triadic
#2F337B #7B2F33 #337B2F
tetradic
#2F337B #7B2F59 #7B772F #2F7B51
square
#2F337B #7B2F59 #7B772F #2F7B51
split-complementary
#2F337B #7B512F #597B2F
monochromatic
#0D0E22 #1E214F #2F337B #4045A7 #6267C3
Accessibility & contrast
On white
11.17
#2F337B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#2F337B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F337B
11.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F337B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F337B | 1.00 | 11.17 | 1.88 | 11.17 |
| #FFFFFF | 11.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F7D
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #2f337b; /* rgb */ color: rgb(47, 51, 123); /* oklch */ color: oklch(36.2% 0.120 276.2);
Tailwind
colors: {
custom: {
50: '#706aa2',
500: '#2f337b',
950: '#000000',
},
}SCSS
$custom: #2f337b; $custom-light: #706aa2; $custom-dark: #000000;
JSON
{
"hex": "#2f337b",
"rgb": {
"r": 47,
"g": 51,
"b": 123
},
"hsl": {
"h": 236.842,
"s": 44.706,
"l": 33.333
},
"oklch": {
"l": 0.36171,
"c": 0.12031,
"h": 276.2
},
"luminance": 0.04402
}Semantic roles & 50–950 ramp
primary
#2F337B
secondary
#AAA65C
accent
#CE53D4
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F