#2C1672#2C1672
#2C1672 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.145 H 284.6°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1672 |
|---|---|
| RGB | rgb(44, 22, 114) |
| HSL | hsl(254, 68%, 27%) |
| HSV | hsv(254, 81%, 45%) |
| CMYK | cmyk(61.4%, 80.7%, 0%, 55.3%) |
| CIE-LAB | lab(17.10, 36.33, -48.76) |
| CIE-LCH | lch(17.10, 60.81, 306.69°) |
| OKLab | oklab(30.17% 0.0365 -0.1405) |
| OKLCH | oklch(30.17% 0.145 284.6) |
| XYZ | xyz(4.3619, 2.3239, 16.1350) |
| Luminance | 0.0232 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.89
Indigo (survey)
#380282
ΔE00 4.26
Dark Royal Blue
#02066F
ΔE00 4.66
Deep Blue
#040273
ΔE00 4.94
Darkblue (survey)
#030764
ΔE00 5.03
Dark Indigo
#1F0954
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1672 #5C7216
analogous
#162E72 #2C1672 #5A1672
triadic
#2C1672 #722C16 #16722C
tetradic
#2C1672 #72162E #5C7216 #16725A
square
#2C1672 #72162E #5C7216 #16725A
split-complementary
#2C1672 #725A16 #2E7216
monochromatic
#0A051A #180C3F #2C1672 #4020A5 #552CD6
Accessibility & contrast
On white
14.34
#2C1672 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#2C1672 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1672
14.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1672 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1672 | 1.00 | 14.34 | 1.46 | 14.34 |
| #FFFFFF | 14.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#033143
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2c1672; /* rgb */ color: rgb(44, 22, 114); /* oklch */ color: oklch(30.2% 0.145 284.6);
Tailwind
colors: {
custom: {
50: '#6f569c',
500: '#2c1672',
950: '#000000',
},
}SCSS
$custom: #2c1672; $custom-light: #6f569c; $custom-dark: #000000;
JSON
{
"hex": "#2c1672",
"rgb": {
"r": 44,
"g": 22,
"b": 114
},
"hsl": {
"h": 254.348,
"s": 67.647,
"l": 26.667
},
"oklch": {
"l": 0.30165,
"c": 0.14517,
"h": 284.6
},
"luminance": 0.02324
}Semantic roles & 50–950 ramp
primary
#2C1672
secondary
#8EA83C
accent
#EB3DC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E