#2C165F#2C165F
#2C165F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.121 H 290.2°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2C165F |
|---|---|
| RGB | rgb(44, 22, 95) |
| HSL | hsl(258, 62%, 23%) |
| HSV | hsv(258, 77%, 37%) |
| CMYK | cmyk(53.7%, 76.8%, 0%, 62.7%) |
| CIE-LAB | lab(15.14, 30.35, -39.50) |
| CIE-LCH | lch(15.14, 49.82, 307.53°) |
| OKLab | oklab(28.19% 0.0418 -0.1134) |
| OKLCH | oklch(28.19% 0.121 290.2) |
| XYZ | xyz(3.3906, 1.9354, 11.0192) |
| Luminance | 0.0194 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.35
Midnight Blue
#191970
ΔE00 4.62
Darkblue (survey)
#030764
ΔE00 5.70
Dark Blue
#00035B
ΔE00 6.18
Dark Royal Blue
#02066F
ΔE00 6.37
Night Blue
#040348
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C165F #495F16
analogous
#16255F #2C165F #50165F
triadic
#2C165F #5F2C16 #165F2C
tetradic
#2C165F #5F1625 #495F16 #165F50
square
#2C165F #5F1625 #495F16 #165F50
split-complementary
#2C165F #5F5016 #255F16
monochromatic
#0C0619 #150A2D #2C165F #432291 #5A2DC2
Accessibility & contrast
On white
15.14
#2C165F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.39
#2C165F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C165F
15.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C165F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C165F | 1.00 | 15.14 | 1.39 | 15.14 |
| #FFFFFF | 15.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#1A2939
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #2c165f; /* rgb */ color: rgb(44, 22, 95); /* oklch */ color: oklch(28.2% 0.121 290.2);
Tailwind
colors: {
custom: {
50: '#6b558d',
500: '#2c165f',
950: '#000000',
},
}SCSS
$custom: #2c165f; $custom-light: #6b558d; $custom-dark: #000000;
JSON
{
"hex": "#2c165f",
"rgb": {
"r": 44,
"g": 22,
"b": 95
},
"hsl": {
"h": 258.082,
"s": 62.393,
"l": 22.941
},
"oklch": {
"l": 0.28192,
"c": 0.12086,
"h": 290.2
},
"luminance": 0.01936
}Semantic roles & 50–950 ramp
primary
#2C165F
secondary
#7B963B
accent
#E542B4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D