#2C166A#2C166A
#2C166A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.135 H 286.7°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).
Color values
| HEX | #2C166A |
|---|---|
| RGB | rgb(44, 22, 106) |
| HSL | hsl(256, 66%, 25%) |
| HSV | hsv(256, 79%, 42%) |
| CMYK | cmyk(58.5%, 79.2%, 0%, 58.4%) |
| CIE-LAB | lab(16.25, 33.82, -44.95) |
| CIE-LCH | lch(16.25, 56.25, 306.96°) |
| OKLab | oklab(29.31% 0.0389 -0.1294) |
| OKLCH | oklch(29.31% 0.135 286.7) |
| XYZ | xyz(3.9264, 2.1497, 13.8409) |
| Luminance | 0.0215 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.22
Dark Indigo
#1F0954
ΔE00 4.36
Darkblue (survey)
#030764
ΔE00 4.97
Dark Royal Blue
#02066F
ΔE00 5.08
Indigo (survey)
#380282
ΔE00 5.27
Deep Blue
#040273
ΔE00 5.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C166A #546A16
analogous
#162A6A #2C166A #56166A
triadic
#2C166A #6A2C16 #166A2C
tetradic
#2C166A #6A162A #546A16 #166A56
square
#2C166A #6A162A #546A16 #166A56
split-complementary
#2C166A #6A5616 #2A6A16
monochromatic
#0B0519 #170B37 #2C166A #41219D #562BCF
Accessibility & contrast
On white
14.69
#2C166A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#2C166A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C166A
14.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C166A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C166A | 1.00 | 14.69 | 1.43 | 14.69 |
| #FFFFFF | 14.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#102D3F
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2c166a; /* rgb */ color: rgb(44, 22, 106); /* oklch */ color: oklch(29.3% 0.135 286.7);
Tailwind
colors: {
custom: {
50: '#6d5695',
500: '#2c166a',
950: '#000000',
},
}SCSS
$custom: #2c166a; $custom-light: #6d5695; $custom-dark: #000000;
JSON
{
"hex": "#2c166a",
"rgb": {
"r": 44,
"g": 22,
"b": 106
},
"hsl": {
"h": 255.714,
"s": 65.625,
"l": 25.098
},
"oklch": {
"l": 0.29314,
"c": 0.13508,
"h": 286.7
},
"luminance": 0.0215
}Semantic roles & 50–950 ramp
primary
#2C166A
secondary
#86A03B
accent
#E93FBC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E