#2C2582#2C2582
#2C2582 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.149 H 278.3°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).
Color values
| HEX | #2C2582 |
|---|---|
| RGB | rgb(44, 37, 130) |
| HSL | hsl(245, 56%, 33%) |
| HSV | hsv(245, 72%, 51%) |
| CMYK | cmyk(66.2%, 71.5%, 0%, 49%) |
| CIE-LAB | lab(21.84, 32.95, -51.20) |
| CIE-LCH | lch(21.84, 60.89, 302.76°) |
| OKLab | oklab(34.02% 0.0214 -0.1477) |
| OKLCH | oklch(34.02% 0.149 278.3) |
| XYZ | xyz(5.7282, 3.4699, 21.4826) |
| Luminance | 0.0347 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.12
Royal
#0C1793
ΔE00 4.71
Indigo (survey)
#380282
ΔE00 6.71
Cobalt Blue
#030AA7
ΔE00 7.32
Darkslateblue
#483D8B
ΔE00 7.36
Darkblue
#00008B
ΔE00 7.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C2582 #7B8225
analogous
#254C82 #2C2582 #5A2582
triadic
#2C2582 #822C25 #25822C
tetradic
#2C2582 #82254C #7B8225 #25825A
square
#2C2582 #82254C #7B8225 #25825A
split-complementary
#2C2582 #825A25 #4C8225
monochromatic
#0C0A23 #1C1752 #2C2582 #3C33B2 #5D53CE
Accessibility & contrast
On white
12.40
#2C2582 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#2C2582 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C2582
12.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C2582 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C2582 | 1.00 | 12.40 | 1.69 | 12.40 |
| #FFFFFF | 12.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2c2582; /* rgb */ color: rgb(44, 37, 130); /* oklch */ color: oklch(34.0% 0.149 278.3);
Tailwind
colors: {
custom: {
50: '#7160a7',
500: '#2c2582',
950: '#000000',
},
}SCSS
$custom: #2c2582; $custom-light: #7160a7; $custom-dark: #000000;
JSON
{
"hex": "#2c2582",
"rgb": {
"r": 44,
"g": 37,
"b": 130
},
"hsl": {
"h": 244.516,
"s": 55.689,
"l": 32.745
},
"oklch": {
"l": 0.34017,
"c": 0.14927,
"h": 278.3
},
"luminance": 0.0347
}Semantic roles & 50–950 ramp
primary
#2C2582
secondary
#ABB250
accent
#DF49D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F