#2D418C#2D418C
#2D418C is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.127 H 268.8°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).
Color values
| HEX | #2D418C |
|---|---|
| RGB | rgb(45, 65, 140) |
| HSL | hsl(227, 51%, 36%) |
| HSV | hsv(227, 68%, 55%) |
| CMYK | cmyk(67.9%, 53.6%, 0%, 45.1%) |
| CIE-LAB | lab(29.99, 18.16, -44.15) |
| CIE-LCH | lch(29.99, 47.74, 292.36°) |
| OKLab | oklab(40.32% -0.0026 -0.1268) |
| OKLCH | oklch(40.32% 0.127 268.8) |
| XYZ | xyz(7.7045, 6.2312, 25.6026) |
| Luminance | 0.0623 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.90
Blueberry
#464196
ΔE00 4.93
Darkish Blue
#014182
ΔE00 5.26
Cobalt
#0047AB
ΔE00 5.39
Sapphire (survey)
#2138AB
ΔE00 5.83
Darkslateblue
#483D8B
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D418C #8C782D
analogous
#2D718C #2D418C #492D8C
triadic
#2D418C #8C2D41 #418C2D
tetradic
#2D418C #8C2D71 #8C782D #2D8C49
square
#2D418C #8C2D71 #8C782D #2D8C49
split-complementary
#2D418C #8C492D #718C2D
monochromatic
#0F162F #1E2B5E #2D418C #3C57BA #667CCE
Accessibility & contrast
On white
9.35
#2D418C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#2D418C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D418C
9.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D418C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D418C | 1.00 | 9.35 | 2.25 | 9.35 |
| #FFFFFF | 9.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#124B8F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #2d418c; /* rgb */ color: rgb(45, 65, 140); /* oklch */ color: oklch(40.3% 0.127 268.8);
Tailwind
colors: {
custom: {
50: '#7175ae',
500: '#2d418c',
950: '#000000',
},
}SCSS
$custom: #2d418c; $custom-light: #7175ae; $custom-dark: #000000;
JSON
{
"hex": "#2d418c",
"rgb": {
"r": 45,
"g": 65,
"b": 140
},
"hsl": {
"h": 227.368,
"s": 51.351,
"l": 36.275
},
"oklch": {
"l": 0.40319,
"c": 0.1268,
"h": 268.8
},
"luminance": 0.06232
}Semantic roles & 50–950 ramp
primary
#2D418C
secondary
#B4A360
accent
#BD4DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F