#2F408C#2F408C
#2F408C is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.2% C 0.128 H 270.2°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).
Color values
| HEX | #2F408C |
|---|---|
| RGB | rgb(47, 64, 140) |
| HSL | hsl(229, 50%, 37%) |
| HSV | hsv(229, 66%, 55%) |
| CMYK | cmyk(66.4%, 54.3%, 0%, 45.1%) |
| CIE-LAB | lab(29.82, 19.19, -44.42) |
| CIE-LCH | lch(29.82, 48.39, 293.37°) |
| OKLab | oklab(40.22% 0.0005 -0.1275) |
| OKLCH | oklch(40.22% 0.128 270.2) |
| XYZ | xyz(7.7377, 6.1639, 25.5878) |
| Luminance | 0.0617 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.46
Cobalt (survey)
#1E488F
ΔE00 4.49
Darkslateblue
#483D8B
ΔE00 5.41
Sapphire (survey)
#2138AB
ΔE00 5.63
Cobalt
#0047AB
ΔE00 5.77
Darkish Blue
#014182
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F408C #8C7B2F
analogous
#2F6F8C #2F408C #4D2F8C
triadic
#2F408C #8C2F40 #408C2F
tetradic
#2F408C #8C2F6F #8C7B2F #2F8C4D
square
#2F408C #8C2F6F #8C7B2F #2F8C4D
split-complementary
#2F408C #8C4D2F #6F8C2F
monochromatic
#101630 #202B5E #2F408C #3E55BA #697BCD
Accessibility & contrast
On white
9.40
#2F408C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#2F408C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F408C
9.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F408C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F408C | 1.00 | 9.40 | 2.23 | 9.40 |
| #FFFFFF | 9.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0E4B8F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2f408c; /* rgb */ color: rgb(47, 64, 140); /* oklch */ color: oklch(40.2% 0.128 270.2);
Tailwind
colors: {
custom: {
50: '#7274ae',
500: '#2f408c',
950: '#000000',
},
}SCSS
$custom: #2f408c; $custom-light: #7274ae; $custom-dark: #000000;
JSON
{
"hex": "#2f408c",
"rgb": {
"r": 47,
"g": 64,
"b": 140
},
"hsl": {
"h": 229.032,
"s": 49.733,
"l": 36.667
},
"oklch": {
"l": 0.40224,
"c": 0.12751,
"h": 270.2
},
"luminance": 0.06165
}Semantic roles & 50–950 ramp
primary
#2F408C
secondary
#B4A563
accent
#C04FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F