#2C1850#2C1850
#2C1850 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.1% C 0.098 H 295.6°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1850 |
|---|---|
| RGB | rgb(44, 24, 80) |
| HSL | hsl(261, 54%, 20%) |
| HSV | hsv(261, 70%, 31%) |
| CMYK | cmyk(45%, 70%, 0%, 68.6%) |
| CIE-LAB | lab(14.22, 24.41, -30.89) |
| CIE-LCH | lch(14.22, 39.37, 308.31°) |
| OKLab | oklab(27.1% 0.0422 -0.0881) |
| OKLCH | oklch(27.1% 0.098 295.6) |
| XYZ | xyz(2.8129, 1.7679, 7.7809) |
| Luminance | 0.0177 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.84
Dark Purple
#35063E
ΔE00 6.87
Midnight Purple
#280137
ΔE00 6.88
Dark Violet
#34013F
ΔE00 7.08
Navy Blue (survey)
#001146
ΔE00 7.19
Night Blue
#040348
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1850 #3C5018
analogous
#182050 #2C1850 #481850
triadic
#2C1850 #502C18 #18502C
tetradic
#2C1850 #501820 #3C5018 #185048
square
#2C1850 #501820 #3C5018 #185048
split-complementary
#2C1850 #504818 #205018
monochromatic
#0D0718 #120A21 #2C1850 #46267F #6034AE
Accessibility & contrast
On white
15.51
#2C1850 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.35
#2C1850 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1850
15.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1850 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1850 | 1.00 | 15.51 | 1.35 | 15.51 |
| #FFFFFF | 15.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#232531
Achromatopsia (no color)
#242424
Design tokens & code
CSS
--color: #2c1850; /* rgb */ color: rgb(44, 24, 80); /* oklch */ color: oklch(27.1% 0.098 295.6);
Tailwind
colors: {
custom: {
50: '#695682',
500: '#2c1850',
950: '#000000',
},
}SCSS
$custom: #2c1850; $custom-light: #695682; $custom-dark: #000000;
JSON
{
"hex": "#2c1850",
"rgb": {
"r": 44,
"g": 24,
"b": 80
},
"hsl": {
"h": 261.429,
"s": 53.846,
"l": 20.392
},
"oklch": {
"l": 0.27104,
"c": 0.09769,
"h": 295.6
},
"luminance": 0.01768
}Semantic roles & 50–950 ramp
primary
#2C1850
secondary
#6C873D
accent
#DD4BA9
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C