#2C408E#2C408E
#2C408E is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.2% C 0.131 H 268.9°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2C408E |
|---|---|
| RGB | rgb(44, 64, 142) |
| HSL | hsl(228, 53%, 36%) |
| HSV | hsv(228, 69%, 56%) |
| CMYK | cmyk(69%, 54.9%, 0%, 44.3%) |
| CIE-LAB | lab(29.80, 19.43, -45.69) |
| CIE-LCH | lch(29.80, 49.66, 293.04°) |
| OKLab | oklab(40.21% -0.0024 -0.1313) |
| OKLCH | oklch(40.21% 0.131 268.9) |
| XYZ | xyz(7.7529, 6.1545, 26.3653) |
| Luminance | 0.0616 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.15
Blueberry
#464196
ΔE00 4.77
Cobalt
#0047AB
ΔE00 5.28
Sapphire (survey)
#2138AB
ΔE00 5.35
Darkish Blue
#014182
ΔE00 5.44
Darkslateblue
#483D8B
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C408E #8E7A2C
analogous
#2C718E #2C408E #492C8E
triadic
#2C408E #8E2C40 #408E2C
tetradic
#2C408E #8E2C71 #8E7A2C #2C8E49
square
#2C408E #8E2C71 #8E7A2C #2C8E49
split-complementary
#2C408E #8E492C #718E2C
monochromatic
#0F1631 #1E2B5F #2C408E #3A55BD #657BCF
Accessibility & contrast
On white
9.41
#2C408E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#2C408E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C408E
9.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C408E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C408E | 1.00 | 9.41 | 2.23 | 9.41 |
| #FFFFFF | 9.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.41 | 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: #2c408e; /* rgb */ color: rgb(44, 64, 142); /* oklch */ color: oklch(40.2% 0.131 268.9);
Tailwind
colors: {
custom: {
50: '#7174b0',
500: '#2c408e',
950: '#000000',
},
}SCSS
$custom: #2c408e; $custom-light: #7174b0; $custom-dark: #000000;
JSON
{
"hex": "#2c408e",
"rgb": {
"r": 44,
"g": 64,
"b": 142
},
"hsl": {
"h": 227.755,
"s": 52.688,
"l": 36.471
},
"oklch": {
"l": 0.40208,
"c": 0.13136,
"h": 268.9
},
"luminance": 0.06155
}Semantic roles & 50–950 ramp
primary
#2C408E
secondary
#B6A460
accent
#BF4CDC
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F