#2C1852#2C1852
#2C1852 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.101 H 294.7°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1852 |
|---|---|
| RGB | rgb(44, 24, 82) |
| HSL | hsl(261, 55%, 21%) |
| HSV | hsv(261, 71%, 32%) |
| CMYK | cmyk(46.3%, 70.7%, 0%, 67.8%) |
| CIE-LAB | lab(14.39, 25.04, -31.98) |
| CIE-LCH | lch(14.39, 40.62, 308.05°) |
| OKLab | oklab(27.28% 0.042 -0.0913) |
| OKLCH | oklch(27.28% 0.101 294.7) |
| XYZ | xyz(2.8879, 1.7979, 8.1759) |
| Luminance | 0.0180 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.53
Night Blue
#040348
ΔE00 7.03
Navy Blue (survey)
#001146
ΔE00 7.12
Dark Purple
#35063E
ΔE00 7.14
Midnight Purple
#280137
ΔE00 7.15
Midnight Blue
#191970
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1852 #3E5218
analogous
#182152 #2C1852 #491852
triadic
#2C1852 #522C18 #18522C
tetradic
#2C1852 #521821 #3E5218 #185249
square
#2C1852 #521821 #3E5218 #185249
split-complementary
#2C1852 #524918 #215218
monochromatic
#0D0718 #130A23 #2C1852 #452681 #5F34B1
Accessibility & contrast
On white
15.45
#2C1852 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.36
#2C1852 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1852
15.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1852 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1852 | 1.00 | 15.45 | 1.36 | 15.45 |
| #FFFFFF | 15.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#222632
Achromatopsia (no color)
#242424
Design tokens & code
CSS
--color: #2c1852; /* rgb */ color: rgb(44, 24, 82); /* oklch */ color: oklch(27.3% 0.101 294.7);
Tailwind
colors: {
custom: {
50: '#695683',
500: '#2c1852',
950: '#000000',
},
}SCSS
$custom: #2c1852; $custom-light: #695683; $custom-dark: #000000;
JSON
{
"hex": "#2c1852",
"rgb": {
"r": 44,
"g": 24,
"b": 82
},
"hsl": {
"h": 260.69,
"s": 54.717,
"l": 20.784
},
"oklch": {
"l": 0.2728,
"c": 0.1005,
"h": 294.7
},
"luminance": 0.01798
}Semantic roles & 50–950 ramp
primary
#2C1852
secondary
#6F893D
accent
#DE4AAB
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C