#2C2387#2C2387
#2C2387 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.158 H 278.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).
Color values
| HEX | #2C2387 |
|---|---|
| RGB | rgb(44, 35, 135) |
| HSL | hsl(245, 59%, 33%) |
| HSV | hsv(245, 74%, 53%) |
| CMYK | cmyk(67.4%, 74.1%, 0%, 47.1%) |
| CIE-LAB | lab(21.89, 35.87, -54.24) |
| CIE-LCH | lch(21.89, 65.03, 303.48°) |
| OKLab | oklab(34.21% 0.022 -0.1566) |
| OKLCH | oklch(34.21% 0.158 278) |
| XYZ | xyz(6.0115, 3.4863, 23.2731) |
| Luminance | 0.0349 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.86
Midnight Blue
#191970
ΔE00 4.42
Indigo (survey)
#380282
ΔE00 6.07
Cobalt Blue
#030AA7
ΔE00 6.33
Indigo Blue
#3A18B1
ΔE00 6.60
Darkblue
#00008B
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C2387 #7E8723
analogous
#234C87 #2C2387 #5E2387
triadic
#2C2387 #872C23 #23872C
tetradic
#2C2387 #87234C #7E8723 #23875E
square
#2C2387 #87234C #7E8723 #23875E
split-complementary
#2C2387 #875E23 #4C8723
monochromatic
#0C0A26 #1C1656 #2C2387 #3C30B8 #5E52D2
Accessibility & contrast
On white
12.37
#2C2387 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#2C2387 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C2387
12.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C2387 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C2387 | 1.00 | 12.37 | 1.70 | 12.37 |
| #FFFFFF | 12.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2c2387; /* rgb */ color: rgb(44, 35, 135); /* oklch */ color: oklch(34.2% 0.158 278.0);
Tailwind
colors: {
custom: {
50: '#725fab',
500: '#2c2387',
950: '#000000',
},
}SCSS
$custom: #2c2387; $custom-light: #725fab; $custom-dark: #000000;
JSON
{
"hex": "#2c2387",
"rgb": {
"r": 44,
"g": 35,
"b": 135
},
"hsl": {
"h": 245.4,
"s": 58.824,
"l": 33.333
},
"oklch": {
"l": 0.34211,
"c": 0.15815,
"h": 278
},
"luminance": 0.03487
}Semantic roles & 50–950 ramp
primary
#2C2387
secondary
#ADB650
accent
#E246D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F