#2D408C#2D408C
#2D408C is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.128 H 269.3°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).
Color values
| HEX | #2D408C |
|---|---|
| RGB | rgb(45, 64, 140) |
| HSL | hsl(228, 51%, 36%) |
| HSV | hsv(228, 68%, 55%) |
| CMYK | cmyk(67.9%, 54.3%, 0%, 45.1%) |
| CIE-LAB | lab(29.71, 18.84, -44.61) |
| CIE-LCH | lch(29.71, 48.43, 292.90°) |
| OKLab | oklab(40.11% -0.0016 -0.1281) |
| OKLCH | oklch(40.11% 0.128 269.3) |
| XYZ | xyz(7.6476, 6.1174, 25.5836) |
| Luminance | 0.0612 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.22
Blueberry
#464196
ΔE00 4.77
Darkish Blue
#014182
ΔE00 5.46
Cobalt
#0047AB
ΔE00 5.56
Sapphire (survey)
#2138AB
ΔE00 5.64
Darkslateblue
#483D8B
ΔE00 5.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D408C #8C792D
analogous
#2D708C #2D408C #4A2D8C
triadic
#2D408C #8C2D40 #408C2D
tetradic
#2D408C #8C2D70 #8C792D #2D8C4A
square
#2D408C #8C2D70 #8C792D #2D8C4A
split-complementary
#2D408C #8C4A2D #708C2D
monochromatic
#0F162F #1E2B5E #2D408C #3C55BA #667ACE
Accessibility & contrast
On white
9.44
#2D408C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#2D408C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D408C
9.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D408C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D408C | 1.00 | 9.44 | 2.22 | 9.44 |
| #FFFFFF | 9.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0E4A8F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2d408c; /* rgb */ color: rgb(45, 64, 140); /* oklch */ color: oklch(40.1% 0.128 269.3);
Tailwind
colors: {
custom: {
50: '#7174ae',
500: '#2d408c',
950: '#000000',
},
}SCSS
$custom: #2d408c; $custom-light: #7174ae; $custom-dark: #000000;
JSON
{
"hex": "#2d408c",
"rgb": {
"r": 45,
"g": 64,
"b": 140
},
"hsl": {
"h": 228,
"s": 51.351,
"l": 36.275
},
"oklch": {
"l": 0.40106,
"c": 0.12814,
"h": 269.3
},
"luminance": 0.06118
}Semantic roles & 50–950 ramp
primary
#2D408C
secondary
#B4A460
accent
#BE4DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F