#2F418F#2F418F
#2F418F is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.7% C 0.131 H 269.9°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).
Color values
| HEX | #2F418F |
|---|---|
| RGB | rgb(47, 65, 143) |
| HSL | hsl(229, 51%, 37%) |
| HSV | hsv(229, 67%, 56%) |
| CMYK | cmyk(67.1%, 54.5%, 0%, 43.9%) |
| CIE-LAB | lab(30.32, 19.63, -45.46) |
| CIE-LCH | lch(30.32, 49.52, 293.36°) |
| OKLab | oklab(40.67% -0.0002 -0.1306) |
| OKLCH | oklch(40.67% 0.131 269.9) |
| XYZ | xyz(8.0188, 6.3674, 26.7877) |
| Luminance | 0.0637 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.25
Blueberry
#464196
ΔE00 4.40
Cobalt
#0047AB
ΔE00 5.31
Sapphire (survey)
#2138AB
ΔE00 5.38
Darkslateblue
#483D8B
ΔE00 5.57
Darkish Blue
#014182
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F418F #8F7D2F
analogous
#2F718F #2F418F #4D2F8F
triadic
#2F418F #8F2F41 #418F2F
tetradic
#2F418F #8F2F71 #8F7D2F #2F8F4D
square
#2F418F #8F2F71 #8F7D2F #2F8F4D
split-complementary
#2F418F #8F4D2F #718F2F
monochromatic
#111733 #202C61 #2F418F #3E56BD #6A7DCE
Accessibility & contrast
On white
9.24
#2F418F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#2F418F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F418F
9.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F418F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F418F | 1.00 | 9.24 | 2.27 | 9.24 |
| #FFFFFF | 9.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0C4C92
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #2f418f; /* rgb */ color: rgb(47, 65, 143); /* oklch */ color: oklch(40.7% 0.131 269.9);
Tailwind
colors: {
custom: {
50: '#7375b0',
500: '#2f418f',
950: '#000000',
},
}SCSS
$custom: #2f418f; $custom-light: #7375b0; $custom-dark: #000000;
JSON
{
"hex": "#2f418f",
"rgb": {
"r": 47,
"g": 65,
"b": 143
},
"hsl": {
"h": 228.75,
"s": 50.526,
"l": 37.255
},
"oklch": {
"l": 0.4067,
"c": 0.13056,
"h": 269.9
},
"luminance": 0.06368
}Semantic roles & 50–950 ramp
primary
#2F418F
secondary
#B5A665
accent
#C04EDA
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090811
muted
#7B7B80