#2F418B#2F418B
#2F418B is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.125 H 269.7°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).
Color values
| HEX | #2F418B |
|---|---|
| RGB | rgb(47, 65, 139) |
| HSL | hsl(228, 49%, 36%) |
| HSV | hsv(228, 66%, 55%) |
| CMYK | cmyk(66.2%, 53.2%, 0%, 45.5%) |
| CIE-LAB | lab(30.03, 18.14, -43.46) |
| CIE-LCH | lch(30.03, 47.10, 292.65°) |
| OKLab | oklab(40.36% -0.0005 -0.1247) |
| OKLCH | oklch(40.36% 0.125 269.7) |
| XYZ | xyz(7.7212, 6.2483, 25.2202) |
| Luminance | 0.0625 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.17
Blueberry
#464196
ΔE00 4.70
Darkish Blue
#014182
ΔE00 5.53
Darkslateblue
#483D8B
ΔE00 5.65
Cobalt
#0047AB
ΔE00 5.70
Sapphire (survey)
#2138AB
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F418B #8B792F
analogous
#2F6F8B #2F418B #4B2F8B
triadic
#2F418B #8B2F41 #418B2F
tetradic
#2F418B #8B2F6F #8B792F #2F8B4B
square
#2F418B #8B2F6F #8B792F #2F8B4B
split-complementary
#2F418B #8B4B2F #6F8B2F
monochromatic
#101630 #202C5D #2F418B #3E56B9 #687CCC
Accessibility & contrast
On white
9.33
#2F418B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#2F418B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F418B
9.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F418B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F418B | 1.00 | 9.33 | 2.25 | 9.33 |
| #FFFFFF | 9.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#144B8E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #2f418b; /* rgb */ color: rgb(47, 65, 139); /* oklch */ color: oklch(40.4% 0.125 269.7);
Tailwind
colors: {
custom: {
50: '#7275ad',
500: '#2f418b',
950: '#000000',
},
}SCSS
$custom: #2f418b; $custom-light: #7275ad; $custom-dark: #000000;
JSON
{
"hex": "#2f418b",
"rgb": {
"r": 47,
"g": 65,
"b": 139
},
"hsl": {
"h": 228.261,
"s": 49.462,
"l": 36.471
},
"oklch": {
"l": 0.40358,
"c": 0.12469,
"h": 269.7
},
"luminance": 0.06249
}Semantic roles & 50–950 ramp
primary
#2F418B
secondary
#B3A363
accent
#BE4FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F