#2C1C8C#2C1C8C
#2C1C8C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.172 H 278.4°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1C8C |
|---|---|
| RGB | rgb(44, 28, 140) |
| HSL | hsl(249, 67%, 33%) |
| HSV | hsv(249, 80%, 55%) |
| CMYK | cmyk(68.6%, 80%, 0%, 45.1%) |
| CIE-LAB | lab(21.05, 41.42, -58.76) |
| CIE-LCH | lch(21.05, 71.89, 305.18°) |
| OKLab | oklab(33.78% 0.0251 -0.1697) |
| OKLCH | oklch(33.78% 0.172 278.4) |
| XYZ | xyz(6.1861, 3.2589, 25.1089) |
| Luminance | 0.0326 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.68
Indigo (survey)
#380282
ΔE00 4.57
Cobalt Blue
#030AA7
ΔE00 4.76
Midnight Blue
#191970
ΔE00 4.87
Darkblue
#00008B
ΔE00 5.14
Royal Blue (survey)
#0504AA
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1C8C #7C8C1C
analogous
#1C448C #2C1C8C #641C8C
triadic
#2C1C8C #8C2C1C #1C8C2C
tetradic
#2C1C8C #8C1C44 #7C8C1C #1C8C64
square
#2C1C8C #8C1C44 #7C8C1C #1C8C64
split-complementary
#2C1C8C #8C641C #448C1C
monochromatic
#0C0826 #1C1259 #2C1C8C #3C26BF #5D48DA
Accessibility & contrast
On white
12.71
#2C1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2C1C8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1C8C
12.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1C8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1C8C | 1.00 | 12.71 | 1.65 | 12.71 |
| #FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2c1c8c; /* rgb */ color: rgb(44, 28, 140); /* oklch */ color: oklch(33.8% 0.172 278.4);
Tailwind
colors: {
custom: {
50: '#745baf',
500: '#2c1c8c',
950: '#000000',
},
}SCSS
$custom: #2c1c8c; $custom-light: #745baf; $custom-dark: #000000;
JSON
{
"hex": "#2c1c8c",
"rgb": {
"r": 44,
"g": 28,
"b": 140
},
"hsl": {
"h": 248.571,
"s": 66.667,
"l": 32.941
},
"oklch": {
"l": 0.33777,
"c": 0.17158,
"h": 278.4
},
"luminance": 0.03259
}Semantic roles & 50–950 ramp
primary
#2C1C8C
secondary
#ACBC48
accent
#EA3ED1
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F