#2F417F#2F417F
#2F417F is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.5% C 0.107 H 268.9°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).
Color values
| HEX | #2F417F |
|---|---|
| RGB | rgb(47, 65, 127) |
| HSL | hsl(227, 46%, 34%) |
| HSV | hsv(227, 63%, 50%) |
| CMYK | cmyk(63%, 48.8%, 0%, 50.2%) |
| CIE-LAB | lab(29.20, 13.67, -37.35) |
| CIE-LCH | lch(29.20, 39.77, 290.10°) |
| OKLab | oklab(39.46% -0.002 -0.1067) |
| OKLCH | oklch(39.46% 0.107 268.9) |
| XYZ | xyz(6.8921, 5.9167, 20.8534) |
| Luminance | 0.0592 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.49
Darkish Blue
#014182
ΔE00 5.19
Twilight Blue
#0A437A
ΔE00 5.76
Blueberry
#464196
ΔE00 6.00
Darkslateblue
#483D8B
ΔE00 6.37
Marine Blue
#01386A
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F417F #7F6D2F
analogous
#2F697F #2F417F #452F7F
triadic
#2F417F #7F2F41 #417F2F
tetradic
#2F417F #7F2F69 #7F6D2F #2F7F45
square
#2F417F #7F2F69 #7F6D2F #2F7F45
split-complementary
#2F417F #7F452F #697F2F
monochromatic
#0E1326 #1E2A52 #2F417F #4058AC #6379C5
Accessibility & contrast
On white
9.62
#2F417F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#2F417F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F417F
9.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F417F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F417F | 1.00 | 9.62 | 2.18 | 9.62 |
| #FFFFFF | 9.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#234981
Deuteranopia (green-blind)
#15417E
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #2f417f; /* rgb */ color: rgb(47, 65, 127); /* oklch */ color: oklch(39.5% 0.107 268.9);
Tailwind
colors: {
custom: {
50: '#7075a4',
500: '#2f417f',
950: '#000000',
},
}SCSS
$custom: #2f417f; $custom-light: #7075a4; $custom-dark: #000000;
JSON
{
"hex": "#2f417f",
"rgb": {
"r": 47,
"g": 65,
"b": 127
},
"hsl": {
"h": 226.5,
"s": 45.977,
"l": 34.118
},
"oklch": {
"l": 0.39463,
"c": 0.10673,
"h": 268.9
},
"luminance": 0.05917
}Semantic roles & 50–950 ramp
primary
#2F417F
secondary
#AC9B5E
accent
#B852D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F