#2D418D#2D418D
#2D418D is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.4% C 0.128 H 268.9°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).
Color values
| HEX | #2D418D |
|---|---|
| RGB | rgb(45, 65, 141) |
| HSL | hsl(228, 52%, 36%) |
| HSV | hsv(228, 68%, 55%) |
| CMYK | cmyk(68.1%, 53.9%, 0%, 44.7%) |
| CIE-LAB | lab(30.06, 18.54, -44.65) |
| CIE-LCH | lch(30.06, 48.35, 292.55°) |
| OKLab | oklab(40.4% -0.0025 -0.1282) |
| OKLCH | oklch(40.4% 0.128 268.9) |
| XYZ | xyz(7.7786, 6.2608, 25.9927) |
| Luminance | 0.0626 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.92
Blueberry
#464196
ΔE00 4.85
Cobalt
#0047AB
ΔE00 5.29
Darkish Blue
#014182
ΔE00 5.33
Sapphire (survey)
#2138AB
ΔE00 5.69
Darkslateblue
#483D8B
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D418D #8D792D
analogous
#2D718D #2D418D #492D8D
triadic
#2D418D #8D2D41 #418D2D
tetradic
#2D418D #8D2D71 #8D792D #2D8D49
square
#2D418D #8D2D71 #8D792D #2D8D49
split-complementary
#2D418D #8D492D #718D2D
monochromatic
#0F1630 #1E2C5F #2D418D #3C56BB #667CCE
Accessibility & contrast
On white
9.32
#2D418D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#2D418D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D418D
9.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D418D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D418D | 1.00 | 9.32 | 2.25 | 9.32 |
| #FFFFFF | 9.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#104B90
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #2d418d; /* rgb */ color: rgb(45, 65, 141); /* oklch */ color: oklch(40.4% 0.128 268.9);
Tailwind
colors: {
custom: {
50: '#7275af',
500: '#2d418d',
950: '#000000',
},
}SCSS
$custom: #2d418d; $custom-light: #7275af; $custom-dark: #000000;
JSON
{
"hex": "#2d418d",
"rgb": {
"r": 45,
"g": 65,
"b": 141
},
"hsl": {
"h": 227.5,
"s": 51.613,
"l": 36.471
},
"oklch": {
"l": 0.40397,
"c": 0.12826,
"h": 268.9
},
"luminance": 0.06262
}Semantic roles & 50–950 ramp
primary
#2D418D
secondary
#B5A361
accent
#BD4DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F