#2C1966#2C1966
#2C1966 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.126 H 287.1°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1966 |
|---|---|
| RGB | rgb(44, 25, 102) |
| HSL | hsl(255, 61%, 25%) |
| HSV | hsv(255, 75%, 40%) |
| CMYK | cmyk(56.9%, 75.5%, 0%, 60%) |
| CIE-LAB | lab(16.45, 30.84, -42.00) |
| CIE-LCH | lch(16.45, 52.11, 306.29°) |
| OKLab | oklab(29.33% 0.0372 -0.1207) |
| OKLCH | oklch(29.33% 0.126 287.1) |
| XYZ | xyz(3.7839, 2.1898, 12.7911) |
| Luminance | 0.0219 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.51
Dark Indigo
#1F0954
ΔE00 4.31
Darkblue (survey)
#030764
ΔE00 5.55
Dark Royal Blue
#02066F
ΔE00 5.93
Dark Blue
#00035B
ΔE00 6.38
Indigo (survey)
#380282
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1966 #536619
analogous
#192D66 #2C1966 #521966
triadic
#2C1966 #662C19 #19662C
tetradic
#2C1966 #66192D #536619 #196652
square
#2C1966 #66192D #536619 #196652
split-complementary
#2C1966 #665219 #2D6619
monochromatic
#0B0619 #170D35 #2C1966 #412597 #5631C8
Accessibility & contrast
On white
14.60
#2C1966 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2C1966 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1966
14.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1966 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1966 | 1.00 | 14.60 | 1.44 | 14.60 |
| #FFFFFF | 14.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#142D3D
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2c1966; /* rgb */ color: rgb(44, 25, 102); /* oklch */ color: oklch(29.3% 0.126 287.1);
Tailwind
colors: {
custom: {
50: '#6c5792',
500: '#2c1966',
950: '#000000',
},
}SCSS
$custom: #2c1966; $custom-light: #6c5792; $custom-dark: #000000;
JSON
{
"hex": "#2c1966",
"rgb": {
"r": 44,
"g": 25,
"b": 102
},
"hsl": {
"h": 254.805,
"s": 60.63,
"l": 24.902
},
"oklch": {
"l": 0.29332,
"c": 0.12635,
"h": 287.1
},
"luminance": 0.0219
}Semantic roles & 50–950 ramp
primary
#2C1966
secondary
#859C3F
accent
#E444BC
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E