#2F418E#2F418E
#2F418E is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.129 H 269.9°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).
Color values
| HEX | #2F418E |
|---|---|
| RGB | rgb(47, 65, 142) |
| HSL | hsl(229, 50%, 37%) |
| HSV | hsv(229, 67%, 56%) |
| CMYK | cmyk(66.9%, 54.2%, 0%, 44.3%) |
| CIE-LAB | lab(30.25, 19.26, -44.96) |
| CIE-LCH | lch(30.25, 48.91, 293.19°) |
| OKLab | oklab(40.59% -0.0003 -0.1291) |
| OKLCH | oklch(40.59% 0.129 269.9) |
| XYZ | xyz(7.9434, 6.3372, 26.3905) |
| Luminance | 0.0634 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.22
Blueberry
#464196
ΔE00 4.47
Cobalt
#0047AB
ΔE00 5.41
Sapphire (survey)
#2138AB
ΔE00 5.53
Darkslateblue
#483D8B
ΔE00 5.58
Darkish Blue
#014182
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F418E #8E7C2F
analogous
#2F718E #2F418E #4D2F8E
triadic
#2F418E #8E2F41 #418E2F
tetradic
#2F418E #8E2F71 #8E7C2F #2F8E4D
square
#2F418E #8E2F71 #8E7C2F #2F8E4D
split-complementary
#2F418E #8E4D2F #718E2F
monochromatic
#111732 #202C60 #2F418E #3E56BC #6A7DCE
Accessibility & contrast
On white
9.26
#2F418E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#2F418E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F418E
9.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F418E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F418E | 1.00 | 9.26 | 2.27 | 9.26 |
| #FFFFFF | 9.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0E4C91
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #2f418e; /* rgb */ color: rgb(47, 65, 142); /* oklch */ color: oklch(40.6% 0.129 269.9);
Tailwind
colors: {
custom: {
50: '#7375b0',
500: '#2f418e',
950: '#000000',
},
}SCSS
$custom: #2f418e; $custom-light: #7375b0; $custom-dark: #000000;
JSON
{
"hex": "#2f418e",
"rgb": {
"r": 47,
"g": 65,
"b": 142
},
"hsl": {
"h": 228.632,
"s": 50.265,
"l": 37.059
},
"oklch": {
"l": 0.40592,
"c": 0.1291,
"h": 269.9
},
"luminance": 0.06338
}Semantic roles & 50–950 ramp
primary
#2F418E
secondary
#B5A564
accent
#BF4EDA
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F