#2C165B#2C165B
#2C165B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.116 H 291.7°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2C165B |
|---|---|
| RGB | rgb(44, 22, 91) |
| HSL | hsl(259, 61%, 22%) |
| HSV | hsv(259, 76%, 36%) |
| CMYK | cmyk(51.6%, 75.8%, 0%, 64.3%) |
| CIE-LAB | lab(14.76, 29.09, -37.46) |
| CIE-LCH | lch(14.76, 47.43, 307.83°) |
| OKLab | oklab(27.8% 0.0427 -0.1074) |
| OKLCH | oklch(27.8% 0.116 291.7) |
| XYZ | xyz(3.2134, 1.8645, 10.0861) |
| Luminance | 0.0186 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.30
Midnight Blue
#191970
ΔE00 5.31
Darkblue (survey)
#030764
ΔE00 6.19
Dark Blue
#00035B
ΔE00 6.50
Night Blue
#040348
ΔE00 6.54
Dark Royal Blue
#02066F
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C165B #455B16
analogous
#16235B #2C165B #4F165B
triadic
#2C165B #5B2C16 #165B2C
tetradic
#2C165B #5B1623 #455B16 #165B4F
square
#2C165B #5B1623 #455B16 #165B4F
split-complementary
#2C165B #5B4F16 #235B16
monochromatic
#0C0619 #140A2A #2C165B #44228C #5C2EBE
Accessibility & contrast
On white
15.29
#2C165B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.37
#2C165B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C165B
15.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C165B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C165B | 1.00 | 15.29 | 1.37 | 15.29 |
| #FFFFFF | 15.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#1D2836
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #2c165b; /* rgb */ color: rgb(44, 22, 91); /* oklch */ color: oklch(27.8% 0.116 291.7);
Tailwind
colors: {
custom: {
50: '#6b558a',
500: '#2c165b',
950: '#000000',
},
}SCSS
$custom: #2c165b; $custom-light: #6b558a; $custom-dark: #000000;
JSON
{
"hex": "#2c165b",
"rgb": {
"r": 44,
"g": 22,
"b": 91
},
"hsl": {
"h": 259.13,
"s": 61.062,
"l": 22.157
},
"oklch": {
"l": 0.278,
"c": 0.11559,
"h": 291.7
},
"luminance": 0.01865
}Semantic roles & 50–950 ramp
primary
#2C165B
secondary
#76923B
accent
#E444B1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D