#2F417D#2F417D
#2F417D is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.3% C 0.104 H 268.7°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).
Color values
| HEX | #2F417D |
|---|---|
| RGB | rgb(47, 65, 125) |
| HSL | hsl(226, 45%, 34%) |
| HSV | hsv(226, 62%, 49%) |
| CMYK | cmyk(62.4%, 48%, 0%, 51%) |
| CIE-LAB | lab(29.07, 12.93, -36.31) |
| CIE-LCH | lch(29.07, 38.54, 289.60°) |
| OKLab | oklab(39.32% -0.0023 -0.1037) |
| OKLCH | oklch(39.32% 0.104 268.7) |
| XYZ | xyz(6.7630, 5.8650, 20.1737) |
| Luminance | 0.0587 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.62
Darkish Blue
#014182
ΔE00 5.21
Twilight Blue
#0A437A
ΔE00 5.70
Blueberry
#464196
ΔE00 6.26
Marine Blue
#01386A
ΔE00 6.30
Darkslateblue
#483D8B
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F417D #7D6B2F
analogous
#2F687D #2F417D #442F7D
triadic
#2F417D #7D2F41 #417D2F
tetradic
#2F417D #7D2F68 #7D6B2F #2F7D44
square
#2F417D #7D2F68 #7D6B2F #2F7D44
split-complementary
#2F417D #7D442F #687D2F
monochromatic
#0E1324 #1E2A51 #2F417D #4058A9 #6279C4
Accessibility & contrast
On white
9.66
#2F417D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#2F417D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F417D
9.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F417D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F417D | 1.00 | 9.66 | 2.17 | 9.66 |
| #FFFFFF | 9.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#24487F
Deuteranopia (green-blind)
#18417C
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #2f417d; /* rgb */ color: rgb(47, 65, 125); /* oklch */ color: oklch(39.3% 0.104 268.7);
Tailwind
colors: {
custom: {
50: '#6f75a3',
500: '#2f417d',
950: '#000000',
},
}SCSS
$custom: #2f417d; $custom-light: #6f75a3; $custom-dark: #000000;
JSON
{
"hex": "#2f417d",
"rgb": {
"r": 47,
"g": 65,
"b": 125
},
"hsl": {
"h": 226.154,
"s": 45.349,
"l": 33.725
},
"oklch": {
"l": 0.3932,
"c": 0.10369,
"h": 268.7
},
"luminance": 0.05866
}Semantic roles & 50–950 ramp
primary
#2F417D
secondary
#AB995D
accent
#B753D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F