#2C1B71#2C1B71
#2C1B71 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.138 H 283.7°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1B71 |
|---|---|
| RGB | rgb(44, 27, 113) |
| HSL | hsl(252, 61%, 27%) |
| HSV | hsv(252, 76%, 44%) |
| CMYK | cmyk(61.1%, 76.1%, 0%, 55.7%) |
| CIE-LAB | lab(17.97, 33.25, -46.69) |
| CIE-LCH | lch(17.97, 57.32, 305.46°) |
| OKLab | oklab(30.74% 0.0329 -0.1345) |
| OKLCH | oklch(30.74% 0.138 283.7) |
| XYZ | xyz(4.4104, 2.5113, 15.8719) |
| Luminance | 0.0251 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.55
Indigo (survey)
#380282
ΔE00 5.34
Dark Royal Blue
#02066F
ΔE00 5.45
Darkblue (survey)
#030764
ΔE00 5.64
Dark Indigo
#1F0954
ΔE00 5.79
Deep Blue
#040273
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1B71 #60711B
analogous
#1B3571 #2C1B71 #571B71
triadic
#2C1B71 #712C1B #1B712C
tetradic
#2C1B71 #711B35 #60711B #1B7157
square
#2C1B71 #711B35 #60711B #1B7157
split-complementary
#2C1B71 #71571B #35711B
monochromatic
#0A0619 #190F40 #2C1B71 #3F27A2 #5537CF
Accessibility & contrast
On white
13.98
#2C1B71 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2C1B71 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1B71
13.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1B71 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1B71 | 1.00 | 13.98 | 1.50 | 13.98 |
| #FFFFFF | 13.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#043344
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2c1b71; /* rgb */ color: rgb(44, 27, 113); /* oklch */ color: oklch(30.7% 0.138 283.7);
Tailwind
colors: {
custom: {
50: '#6e599b',
500: '#2c1b71',
950: '#000000',
},
}SCSS
$custom: #2c1b71; $custom-light: #6e599b; $custom-dark: #000000;
JSON
{
"hex": "#2c1b71",
"rgb": {
"r": 44,
"g": 27,
"b": 113
},
"hsl": {
"h": 251.86,
"s": 61.429,
"l": 27.451
},
"oklch": {
"l": 0.30744,
"c": 0.13845,
"h": 283.7
},
"luminance": 0.02512
}Semantic roles & 50–950 ramp
primary
#2C1B71
secondary
#92A642
accent
#E543C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E