#2F337C#2F337C
#2F337C is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.122 H 276.1°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2F337C |
|---|---|
| RGB | rgb(47, 51, 124) |
| HSL | hsl(237, 45%, 34%) |
| HSV | hsv(237, 62%, 49%) |
| CMYK | cmyk(62.1%, 58.9%, 0%, 51.4%) |
| CIE-LAB | lab(25.04, 22.13, -42.18) |
| CIE-LCH | lch(25.04, 47.64, 297.69°) |
| OKLab | oklab(36.25% 0.013 -0.1211) |
| OKLCH | oklch(36.25% 0.122 276.1) |
| XYZ | xyz(5.9930, 4.4268, 19.6035) |
| Luminance | 0.0443 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.01
Blueberry
#464196
ΔE00 5.92
Sapphire (survey)
#2138AB
ΔE00 7.32
Midnight Blue
#191970
ΔE00 7.39
Marine
#042E60
ΔE00 7.49
Marine Blue
#01386A
ΔE00 8.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F337C #7C782F
analogous
#2F597C #2F337C #512F7C
triadic
#2F337C #7C2F33 #337C2F
tetradic
#2F337C #7C2F59 #7C782F #2F7C51
square
#2F337C #7C2F59 #7C782F #2F7C51
split-complementary
#2F337C #7C512F #597C2F
monochromatic
#0D0E23 #1E2150 #2F337C #4045A8 #6267C3
Accessibility & contrast
On white
11.14
#2F337C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#2F337C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F337C
11.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F337C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F337C | 1.00 | 11.14 | 1.89 | 11.14 |
| #FFFFFF | 11.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #2f337c; /* rgb */ color: rgb(47, 51, 124); /* oklch */ color: oklch(36.3% 0.122 276.1);
Tailwind
colors: {
custom: {
50: '#706aa2',
500: '#2f337c',
950: '#000000',
},
}SCSS
$custom: #2f337c; $custom-light: #706aa2; $custom-dark: #000000;
JSON
{
"hex": "#2f337c",
"rgb": {
"r": 47,
"g": 51,
"b": 124
},
"hsl": {
"h": 236.883,
"s": 45.029,
"l": 33.529
},
"oklch": {
"l": 0.36254,
"c": 0.12179,
"h": 276.1
},
"luminance": 0.04427
}Semantic roles & 50–950 ramp
primary
#2F337C
secondary
#AAA65C
accent
#CE53D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F