#2C1B6D#2C1B6D
#2C1B6D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.133 H 284.7°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1B6D |
|---|---|
| RGB | rgb(44, 27, 109) |
| HSL | hsl(252, 60%, 27%) |
| HSV | hsv(252, 75%, 43%) |
| CMYK | cmyk(59.6%, 75.2%, 0%, 57.3%) |
| CIE-LAB | lab(17.57, 31.94, -44.75) |
| CIE-LCH | lch(17.57, 54.98, 305.52°) |
| OKLab | oklab(30.34% 0.0338 -0.1288) |
| OKLCH | oklch(30.34% 0.133 284.7) |
| XYZ | xyz(4.1901, 2.4232, 14.7120) |
| Luminance | 0.0242 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.75
Dark Indigo
#1F0954
ΔE00 5.32
Darkblue (survey)
#030764
ΔE00 5.63
Dark Royal Blue
#02066F
ΔE00 5.66
Indigo (survey)
#380282
ΔE00 5.81
Deep Blue
#040273
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1B6D #5C6D1B
analogous
#1B336D #2C1B6D #551B6D
triadic
#2C1B6D #6D2C1B #1B6D2C
tetradic
#2C1B6D #6D1B33 #5C6D1B #1B6D55
square
#2C1B6D #6D1B33 #5C6D1B #1B6D55
split-complementary
#2C1B6D #6D551B #336D1B
monochromatic
#0A0619 #180F3C #2C1B6D #40279E #5535CD
Accessibility & contrast
On white
14.15
#2C1B6D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#2C1B6D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1B6D
14.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1B6D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1B6D | 1.00 | 14.15 | 1.48 | 14.15 |
| #FFFFFF | 14.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#0B3142
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2c1b6d; /* rgb */ color: rgb(44, 27, 109); /* oklch */ color: oklch(30.3% 0.133 284.7);
Tailwind
colors: {
custom: {
50: '#6d5998',
500: '#2c1b6d',
950: '#000000',
},
}SCSS
$custom: #2c1b6d; $custom-light: #6d5998; $custom-dark: #000000;
JSON
{
"hex": "#2c1b6d",
"rgb": {
"r": 44,
"g": 27,
"b": 109
},
"hsl": {
"h": 252.439,
"s": 60.294,
"l": 26.667
},
"oklch": {
"l": 0.30336,
"c": 0.13319,
"h": 284.7
},
"luminance": 0.02423
}Semantic roles & 50–950 ramp
primary
#2C1B6D
secondary
#8EA242
accent
#E344C2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E