#2F418C#2F418C
#2F418C is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.4% C 0.126 H 269.8°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2F418C |
|---|---|
| RGB | rgb(47, 65, 140) |
| HSL | hsl(228, 50%, 37%) |
| HSV | hsv(228, 66%, 55%) |
| CMYK | cmyk(66.4%, 53.6%, 0%, 45.1%) |
| CIE-LAB | lab(30.10, 18.51, -43.96) |
| CIE-LCH | lch(30.10, 47.70, 292.84°) |
| OKLab | oklab(40.44% -0.0005 -0.1262) |
| OKLCH | oklch(40.44% 0.126 269.8) |
| XYZ | xyz(7.7946, 6.2777, 25.6068) |
| Luminance | 0.0628 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.18
Blueberry
#464196
ΔE00 4.62
Darkish Blue
#014182
ΔE00 5.58
Cobalt
#0047AB
ΔE00 5.60
Darkslateblue
#483D8B
ΔE00 5.62
Sapphire (survey)
#2138AB
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F418C #8C7A2F
analogous
#2F708C #2F418C #4C2F8C
triadic
#2F418C #8C2F41 #418C2F
tetradic
#2F418C #8C2F70 #8C7A2F #2F8C4C
square
#2F418C #8C2F70 #8C7A2F #2F8C4C
split-complementary
#2F418C #8C4C2F #708C2F
monochromatic
#101630 #202C5E #2F418C #3E56BA #697CCD
Accessibility & contrast
On white
9.31
#2F418C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#2F418C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F418C
9.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F418C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F418C | 1.00 | 9.31 | 2.26 | 9.31 |
| #FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#124B8F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #2f418c; /* rgb */ color: rgb(47, 65, 140); /* oklch */ color: oklch(40.4% 0.126 269.8);
Tailwind
colors: {
custom: {
50: '#7275ae',
500: '#2f418c',
950: '#000000',
},
}SCSS
$custom: #2f418c; $custom-light: #7275ae; $custom-dark: #000000;
JSON
{
"hex": "#2f418c",
"rgb": {
"r": 47,
"g": 65,
"b": 140
},
"hsl": {
"h": 228.387,
"s": 49.733,
"l": 36.667
},
"oklch": {
"l": 0.40436,
"c": 0.12617,
"h": 269.8
},
"luminance": 0.06278
}Semantic roles & 50–950 ramp
primary
#2F418C
secondary
#B4A463
accent
#BE4FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F