#2D408D#2D408D
#2D408D is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.130 H 269.3°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2D408D |
|---|---|
| RGB | rgb(45, 64, 141) |
| HSL | hsl(228, 52%, 36%) |
| HSV | hsv(228, 68%, 55%) |
| CMYK | cmyk(68.1%, 54.6%, 0%, 44.7%) |
| CIE-LAB | lab(29.78, 19.22, -45.11) |
| CIE-LCH | lch(29.78, 49.03, 293.08°) |
| OKLab | oklab(40.18% -0.0015 -0.1296) |
| OKLCH | oklch(40.18% 0.13 269.3) |
| XYZ | xyz(7.7217, 6.1470, 25.9737) |
| Luminance | 0.0615 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.24
Blueberry
#464196
ΔE00 4.69
Cobalt
#0047AB
ΔE00 5.46
Sapphire (survey)
#2138AB
ΔE00 5.49
Darkish Blue
#014182
ΔE00 5.52
Darkslateblue
#483D8B
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D408D #8D7A2D
analogous
#2D708D #2D408D #4A2D8D
triadic
#2D408D #8D2D40 #408D2D
tetradic
#2D408D #8D2D70 #8D7A2D #2D8D4A
square
#2D408D #8D2D70 #8D7A2D #2D8D4A
split-complementary
#2D408D #8D4A2D #708D2D
monochromatic
#0F1630 #1E2B5F #2D408D #3C55BB #667BCE
Accessibility & contrast
On white
9.42
#2D408D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#2D408D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D408D
9.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D408D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D408D | 1.00 | 9.42 | 2.23 | 9.42 |
| #FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B4B90
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2d408d; /* rgb */ color: rgb(45, 64, 141); /* oklch */ color: oklch(40.2% 0.130 269.3);
Tailwind
colors: {
custom: {
50: '#7274af',
500: '#2d408d',
950: '#000000',
},
}SCSS
$custom: #2d408d; $custom-light: #7274af; $custom-dark: #000000;
JSON
{
"hex": "#2d408d",
"rgb": {
"r": 45,
"g": 64,
"b": 141
},
"hsl": {
"h": 228.125,
"s": 51.613,
"l": 36.471
},
"oklch": {
"l": 0.40185,
"c": 0.1296,
"h": 269.3
},
"luminance": 0.06148
}Semantic roles & 50–950 ramp
primary
#2D408D
secondary
#B5A461
accent
#BF4DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F