#2F417E#2F417E
#2F417E is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.4% C 0.105 H 268.8°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2F417E |
|---|---|
| RGB | rgb(47, 65, 126) |
| HSL | hsl(226, 46%, 34%) |
| HSV | hsv(226, 63%, 49%) |
| CMYK | cmyk(62.7%, 48.4%, 0%, 50.6%) |
| CIE-LAB | lab(29.14, 13.30, -36.83) |
| CIE-LCH | lch(29.14, 39.16, 289.85°) |
| OKLab | oklab(39.39% -0.0021 -0.1052) |
| OKLCH | oklch(39.39% 0.105 268.8) |
| XYZ | xyz(6.8272, 5.8907, 20.5119) |
| Luminance | 0.0589 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.55
Darkish Blue
#014182
ΔE00 5.20
Twilight Blue
#0A437A
ΔE00 5.73
Blueberry
#464196
ΔE00 6.13
Marine Blue
#01386A
ΔE00 6.37
Darkslateblue
#483D8B
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F417E #7E6C2F
analogous
#2F697E #2F417E #452F7E
triadic
#2F417E #7E2F41 #417E2F
tetradic
#2F417E #7E2F69 #7E6C2F #2F7E45
square
#2F417E #7E2F69 #7E6C2F #2F7E45
split-complementary
#2F417E #7E452F #697E2F
monochromatic
#0E1325 #1E2A51 #2F417E #4058AB #6379C5
Accessibility & contrast
On white
9.64
#2F417E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#2F417E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F417E
9.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F417E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F417E | 1.00 | 9.64 | 2.18 | 9.64 |
| #FFFFFF | 9.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#244880
Deuteranopia (green-blind)
#17417D
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #2f417e; /* rgb */ color: rgb(47, 65, 126); /* oklch */ color: oklch(39.4% 0.105 268.8);
Tailwind
colors: {
custom: {
50: '#6f75a4',
500: '#2f417e',
950: '#000000',
},
}SCSS
$custom: #2f417e; $custom-light: #6f75a4; $custom-dark: #000000;
JSON
{
"hex": "#2f417e",
"rgb": {
"r": 47,
"g": 65,
"b": 126
},
"hsl": {
"h": 226.329,
"s": 45.665,
"l": 33.922
},
"oklch": {
"l": 0.39391,
"c": 0.10521,
"h": 268.8
},
"luminance": 0.05891
}Semantic roles & 50–950 ramp
primary
#2F417E
secondary
#AC9A5D
accent
#B852D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F