#2F397D#2F397D
#2F397D is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.6% C 0.115 H 273.3°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2F397D |
|---|---|
| RGB | rgb(47, 57, 125) |
| HSL | hsl(232, 45%, 34%) |
| HSV | hsv(232, 62%, 49%) |
| CMYK | cmyk(62.4%, 54.4%, 0%, 51%) |
| CIE-LAB | lab(26.77, 18.40, -40.02) |
| CIE-LCH | lch(26.77, 44.04, 294.69°) |
| OKLab | oklab(37.57% 0.0066 -0.1146) |
| OKLCH | oklch(37.57% 0.115 273.3) |
| XYZ | xyz(6.3359, 5.0108, 20.0314) |
| Luminance | 0.0501 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.08
Blueberry
#464196
ΔE00 5.50
Cobalt (survey)
#1E488F
ΔE00 6.87
Darkish Blue
#014182
ΔE00 7.05
Marine
#042E60
ΔE00 7.08
Marine Blue
#01386A
ΔE00 7.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F397D #7D732F
analogous
#2F607D #2F397D #4C2F7D
triadic
#2F397D #7D2F39 #397D2F
tetradic
#2F397D #7D2F60 #7D732F #2F7D4C
square
#2F397D #7D2F60 #7D732F #2F7D4C
split-complementary
#2F397D #7D4C2F #607D2F
monochromatic
#0E1024 #1E2551 #2F397D #404DA9 #626FC4
Accessibility & contrast
On white
10.49
#2F397D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#2F397D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F397D
10.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F397D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F397D | 1.00 | 10.49 | 2.00 | 10.49 |
| #FFFFFF | 10.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#10437F
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #2f397d; /* rgb */ color: rgb(47, 57, 125); /* oklch */ color: oklch(37.6% 0.115 273.3);
Tailwind
colors: {
custom: {
50: '#706fa3',
500: '#2f397d',
950: '#000000',
},
}SCSS
$custom: #2f397d; $custom-light: #706fa3; $custom-dark: #000000;
JSON
{
"hex": "#2f397d",
"rgb": {
"r": 47,
"g": 57,
"b": 125
},
"hsl": {
"h": 232.308,
"s": 45.349,
"l": 33.725
},
"oklch": {
"l": 0.37573,
"c": 0.11484,
"h": 273.3
},
"luminance": 0.05011
}Semantic roles & 50–950 ramp
primary
#2F397D
secondary
#ABA15D
accent
#C453D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F