#2C165D#2C165D
#2C165D is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.118 H 290.9°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).
Color values
| HEX | #2C165D |
|---|---|
| RGB | rgb(44, 22, 93) |
| HSL | hsl(259, 62%, 23%) |
| HSV | hsv(259, 76%, 36%) |
| CMYK | cmyk(52.7%, 76.3%, 0%, 63.5%) |
| CIE-LAB | lab(14.95, 29.72, -38.49) |
| CIE-LCH | lch(14.95, 48.63, 307.68°) |
| OKLab | oklab(27.99% 0.0423 -0.1104) |
| OKLCH | oklch(27.99% 0.118 290.9) |
| XYZ | xyz(3.3008, 1.8995, 10.5465) |
| Luminance | 0.0190 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.29
Midnight Blue
#191970
ΔE00 4.96
Darkblue (survey)
#030764
ΔE00 5.93
Dark Blue
#00035B
ΔE00 6.32
Night Blue
#040348
ΔE00 6.59
Dark Royal Blue
#02066F
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C165D #475D16
analogous
#16235D #2C165D #50165D
triadic
#2C165D #5D2C16 #165D2C
tetradic
#2C165D #5D1623 #475D16 #165D50
square
#2C165D #5D1623 #475D16 #165D50
split-complementary
#2C165D #5D5016 #235D16
monochromatic
#0C0619 #150A2C #2C165D #43228E #5B2DC0
Accessibility & contrast
On white
15.22
#2C165D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.38
#2C165D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C165D
15.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C165D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C165D | 1.00 | 15.22 | 1.38 | 15.22 |
| #FFFFFF | 15.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#1C2838
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #2c165d; /* rgb */ color: rgb(44, 22, 93); /* oklch */ color: oklch(28.0% 0.118 290.9);
Tailwind
colors: {
custom: {
50: '#6b558c',
500: '#2c165d',
950: '#000000',
},
}SCSS
$custom: #2c165d; $custom-light: #6b558c; $custom-dark: #000000;
JSON
{
"hex": "#2c165d",
"rgb": {
"r": 44,
"g": 22,
"b": 93
},
"hsl": {
"h": 258.592,
"s": 61.739,
"l": 22.549
},
"oklch": {
"l": 0.27995,
"c": 0.11823,
"h": 290.9
},
"luminance": 0.019
}Semantic roles & 50–950 ramp
primary
#2C165D
secondary
#78943B
accent
#E543B3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D