#2F409F#2F409F
#2F409F is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.155 H 270.5°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).
Color values
| HEX | #2F409F |
|---|---|
| RGB | rgb(47, 64, 159) |
| HSL | hsl(231, 54%, 40%) |
| HSV | hsv(231, 70%, 62%) |
| CMYK | cmyk(70.4%, 59.7%, 0%, 37.6%) |
| CIE-LAB | lab(31.29, 26.27, -53.64) |
| CIE-LCH | lch(31.29, 59.73, 296.09°) |
| OKLab | oklab(41.78% 0.0013 -0.1546) |
| OKLCH | oklch(41.78% 0.155 270.5) |
| XYZ | xyz(9.2616, 6.7734, 33.6135) |
| Luminance | 0.0677 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.13
Blueberry
#464196
ΔE00 4.02
Cobalt
#0047AB
ΔE00 4.63
Blue Blue
#2242C7
ΔE00 5.41
Cobalt (survey)
#1E488F
ΔE00 5.56
Darkslateblue
#483D8B
ΔE00 5.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F409F #9F8E2F
analogous
#2F789F #2F409F #562F9F
triadic
#2F409F #9F2F40 #409F2F
tetradic
#2F409F #9F2F78 #9F8E2F #2F9F56
square
#2F409F #9F2F78 #9F8E2F #2F9F56
split-complementary
#2F409F #9F562F #789F2F
monochromatic
#131A41 #212D70 #2F409F #4458C8 #7382D6
Accessibility & contrast
On white
8.92
#2F409F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#2F409F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F409F
8.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F409F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F409F | 1.00 | 8.92 | 2.35 | 8.92 |
| #FFFFFF | 8.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2f409f; /* rgb */ color: rgb(47, 64, 159); /* oklch */ color: oklch(41.8% 0.155 270.5);
Tailwind
colors: {
custom: {
50: '#7674bc',
500: '#2f409f',
950: '#000000',
},
}SCSS
$custom: #2f409f; $custom-light: #7674bc; $custom-dark: #000000;
JSON
{
"hex": "#2f409f",
"rgb": {
"r": 47,
"g": 64,
"b": 159
},
"hsl": {
"h": 230.893,
"s": 54.369,
"l": 40.392
},
"oklch": {
"l": 0.41782,
"c": 0.15466,
"h": 270.5
},
"luminance": 0.06774
}Semantic roles & 50–950 ramp
primary
#2F409F
secondary
#BDB16D
accent
#C74ADE
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81