#2D408E#2D408E
#2D408E is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.131 H 269.4°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).
Color values
| HEX | #2D408E |
|---|---|
| RGB | rgb(45, 64, 142) |
| HSL | hsl(228, 52%, 37%) |
| HSV | hsv(228, 68%, 56%) |
| CMYK | cmyk(68.3%, 54.9%, 0%, 44.3%) |
| CIE-LAB | lab(29.85, 19.60, -45.60) |
| CIE-LCH | lch(29.85, 49.64, 293.26°) |
| OKLab | oklab(40.27% -0.0014 -0.131) |
| OKLCH | oklch(40.27% 0.131 269.4) |
| XYZ | xyz(7.7964, 6.1769, 26.3673) |
| Luminance | 0.0618 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.27
Blueberry
#464196
ΔE00 4.62
Sapphire (survey)
#2138AB
ΔE00 5.34
Cobalt
#0047AB
ΔE00 5.37
Darkish Blue
#014182
ΔE00 5.59
Darkslateblue
#483D8B
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D408E #8E7B2D
analogous
#2D718E #2D408E #4A2D8E
triadic
#2D408E #8E2D40 #408E2D
tetradic
#2D408E #8E2D71 #8E7B2D #2D8E4A
square
#2D408E #8E2D71 #8E7B2D #2D8E4A
split-complementary
#2D408E #8E4A2D #718E2D
monochromatic
#101631 #1E2B60 #2D408E #3C55BC #677BCF
Accessibility & contrast
On white
9.39
#2D408E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#2D408E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D408E
9.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D408E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D408E | 1.00 | 9.39 | 2.24 | 9.39 |
| #FFFFFF | 9.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#084B91
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2d408e; /* rgb */ color: rgb(45, 64, 142); /* oklch */ color: oklch(40.3% 0.131 269.4);
Tailwind
colors: {
custom: {
50: '#7274b0',
500: '#2d408e',
950: '#000000',
},
}SCSS
$custom: #2d408e; $custom-light: #7274b0; $custom-dark: #000000;
JSON
{
"hex": "#2d408e",
"rgb": {
"r": 45,
"g": 64,
"b": 142
},
"hsl": {
"h": 228.247,
"s": 51.872,
"l": 36.667
},
"oklch": {
"l": 0.40265,
"c": 0.13106,
"h": 269.4
},
"luminance": 0.06178
}Semantic roles & 50–950 ramp
primary
#2D408E
secondary
#B5A561
accent
#BF4CDB
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F