#2F408A#2F408A
#2F408A is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.125 H 270.2°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).
Color values
| HEX | #2F408A |
|---|---|
| RGB | rgb(47, 64, 138) |
| HSL | hsl(229, 49%, 36%) |
| HSV | hsv(229, 66%, 54%) |
| CMYK | cmyk(65.9%, 53.6%, 0%, 45.9%) |
| CIE-LAB | lab(29.68, 18.45, -43.42) |
| CIE-LCH | lch(29.68, 47.17, 293.02°) |
| OKLab | oklab(40.07% 0.0004 -0.1246) |
| OKLCH | oklch(40.07% 0.125 270.2) |
| XYZ | xyz(7.5916, 6.1054, 24.8182) |
| Luminance | 0.0611 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.47
Blueberry
#464196
ΔE00 4.63
Darkslateblue
#483D8B
ΔE00 5.46
Darkish Blue
#014182
ΔE00 5.67
Sapphire (survey)
#2138AB
ΔE00 5.93
Cobalt
#0047AB
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F408A #8A792F
analogous
#2F6E8A #2F408A #4C2F8A
triadic
#2F408A #8A2F40 #408A2F
tetradic
#2F408A #8A2F6E #8A792F #2F8A4C
square
#2F408A #8A2F6E #8A792F #2F8A4C
split-complementary
#2F408A #8A4C2F #6E8A2F
monochromatic
#10162F #1F2B5C #2F408A #3F55B8 #687ACC
Accessibility & contrast
On white
9.45
#2F408A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#2F408A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F408A
9.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F408A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F408A | 1.00 | 9.45 | 2.22 | 9.45 |
| #FFFFFF | 9.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#124A8D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2f408a; /* rgb */ color: rgb(47, 64, 138); /* oklch */ color: oklch(40.1% 0.125 270.2);
Tailwind
colors: {
custom: {
50: '#7274ad',
500: '#2f408a',
950: '#000000',
},
}SCSS
$custom: #2f408a; $custom-light: #7274ad; $custom-dark: #000000;
JSON
{
"hex": "#2f408a",
"rgb": {
"r": 47,
"g": 64,
"b": 138
},
"hsl": {
"h": 228.791,
"s": 49.189,
"l": 36.275
},
"oklch": {
"l": 0.40068,
"c": 0.12457,
"h": 270.2
},
"luminance": 0.06106
}Semantic roles & 50–950 ramp
primary
#2F408A
secondary
#B3A462
accent
#BF4FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F