#2F418D#2F418D
#2F418D is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.128 H 269.8°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2F418D |
|---|---|
| RGB | rgb(47, 65, 141) |
| HSL | hsl(229, 50%, 37%) |
| HSV | hsv(229, 67%, 55%) |
| CMYK | cmyk(66.7%, 53.9%, 0%, 44.7%) |
| CIE-LAB | lab(30.17, 18.89, -44.46) |
| CIE-LCH | lch(30.17, 48.31, 293.02°) |
| OKLab | oklab(40.51% -0.0004 -0.1276) |
| OKLCH | oklch(40.51% 0.128 269.8) |
| XYZ | xyz(7.8687, 6.3073, 25.9969) |
| Luminance | 0.0631 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.20
Blueberry
#464196
ΔE00 4.54
Cobalt
#0047AB
ΔE00 5.50
Darkslateblue
#483D8B
ΔE00 5.60
Darkish Blue
#014182
ΔE00 5.64
Sapphire (survey)
#2138AB
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F418D #8D7B2F
analogous
#2F708D #2F418D #4C2F8D
triadic
#2F418D #8D2F41 #418D2F
tetradic
#2F418D #8D2F70 #8D7B2F #2F8D4C
square
#2F418D #8D2F70 #8D7B2F #2F8D4C
split-complementary
#2F418D #8D4C2F #708D2F
monochromatic
#101731 #202C5F #2F418D #3E56BB #697CCD
Accessibility & contrast
On white
9.29
#2F418D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#2F418D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F418D
9.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F418D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F418D | 1.00 | 9.29 | 2.26 | 9.29 |
| #FFFFFF | 9.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#114B90
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #2f418d; /* rgb */ color: rgb(47, 65, 141); /* oklch */ color: oklch(40.5% 0.128 269.8);
Tailwind
colors: {
custom: {
50: '#7275af',
500: '#2f418d',
950: '#000000',
},
}SCSS
$custom: #2f418d; $custom-light: #7275af; $custom-dark: #000000;
JSON
{
"hex": "#2f418d",
"rgb": {
"r": 47,
"g": 65,
"b": 141
},
"hsl": {
"h": 228.511,
"s": 50,
"l": 36.863
},
"oklch": {
"l": 0.40514,
"c": 0.12763,
"h": 269.8
},
"luminance": 0.06308
}Semantic roles & 50–950 ramp
primary
#2F418D
secondary
#B4A564
accent
#BF4EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F