#2C408B#2C408B
#2C408B is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.0% C 0.127 H 268.8°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2C408B |
|---|---|
| RGB | rgb(44, 64, 139) |
| HSL | hsl(227, 52%, 36%) |
| HSV | hsv(227, 68%, 55%) |
| CMYK | cmyk(68.3%, 54%, 0%, 45.5%) |
| CIE-LAB | lab(29.58, 18.30, -44.20) |
| CIE-LCH | lch(29.58, 47.84, 292.49°) |
| OKLab | oklab(39.97% -0.0027 -0.127) |
| OKLCH | oklch(39.97% 0.127 268.8) |
| XYZ | xyz(7.5307, 6.0656, 25.1950) |
| Luminance | 0.0607 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.08
Blueberry
#464196
ΔE00 5.00
Darkish Blue
#014182
ΔE00 5.24
Cobalt
#0047AB
ΔE00 5.56
Sapphire (survey)
#2138AB
ΔE00 5.80
Darkslateblue
#483D8B
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C408B #8B772C
analogous
#2C6F8B #2C408B #472C8B
triadic
#2C408B #8B2C40 #408B2C
tetradic
#2C408B #8B2C6F #8B772C #2C8B47
square
#2C408B #8B2C6F #8B772C #2C8B47
split-complementary
#2C408B #8B472C #6F8B2C
monochromatic
#0F152E #1D2B5D #2C408B #3B55B9 #647ACE
Accessibility & contrast
On white
9.49
#2C408B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#2C408B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C408B
9.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C408B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C408B | 1.00 | 9.49 | 2.21 | 9.49 |
| #FFFFFF | 9.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0F4A8E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2c408b; /* rgb */ color: rgb(44, 64, 139); /* oklch */ color: oklch(40.0% 0.127 268.8);
Tailwind
colors: {
custom: {
50: '#7174ad',
500: '#2c408b',
950: '#000000',
},
}SCSS
$custom: #2c408b; $custom-light: #7174ad; $custom-dark: #000000;
JSON
{
"hex": "#2c408b",
"rgb": {
"r": 44,
"g": 64,
"b": 139
},
"hsl": {
"h": 227.368,
"s": 51.913,
"l": 35.882
},
"oklch": {
"l": 0.3997,
"c": 0.12699,
"h": 268.8
},
"luminance": 0.06066
}Semantic roles & 50–950 ramp
primary
#2C408B
secondary
#B4A25F
accent
#BD4CDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F