#2C166F#2C166F
#2C166F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.141 H 285.3°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).
Color values
| HEX | #2C166F |
|---|---|
| RGB | rgb(44, 22, 111) |
| HSL | hsl(255, 67%, 26%) |
| HSV | hsv(255, 80%, 44%) |
| CMYK | cmyk(60.4%, 80.2%, 0%, 56.5%) |
| CIE-LAB | lab(16.78, 35.39, -47.35) |
| CIE-LCH | lch(16.78, 59.11, 306.78°) |
| OKLab | oklab(29.84% 0.0374 -0.1364) |
| OKLCH | oklch(29.84% 0.141 285.3) |
| XYZ | xyz(4.1940, 2.2567, 15.2504) |
| Luminance | 0.0226 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.93
Indigo (survey)
#380282
ΔE00 4.61
Dark Royal Blue
#02066F
ΔE00 4.76
Darkblue (survey)
#030764
ΔE00 4.96
Dark Indigo
#1F0954
ΔE00 5.03
Deep Blue
#040273
ΔE00 5.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C166F #596F16
analogous
#162D6F #2C166F #58166F
triadic
#2C166F #6F2C16 #166F2C
tetradic
#2C166F #6F162D #596F16 #166F58
square
#2C166F #6F162D #596F16 #166F58
split-complementary
#2C166F #6F5816 #2D6F16
monochromatic
#0A051A #180C3C #2C166F #4020A2 #552BD5
Accessibility & contrast
On white
14.47
#2C166F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2C166F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C166F
14.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C166F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C166F | 1.00 | 14.47 | 1.45 | 14.47 |
| #FFFFFF | 14.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#092F42
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2c166f; /* rgb */ color: rgb(44, 22, 111); /* oklch */ color: oklch(29.8% 0.141 285.3);
Tailwind
colors: {
custom: {
50: '#6e5699',
500: '#2c166f',
950: '#000000',
},
}SCSS
$custom: #2c166f; $custom-light: #6e5699; $custom-dark: #000000;
JSON
{
"hex": "#2c166f",
"rgb": {
"r": 44,
"g": 22,
"b": 111
},
"hsl": {
"h": 254.831,
"s": 66.917,
"l": 26.078
},
"oklch": {
"l": 0.29843,
"c": 0.14141,
"h": 285.3
},
"luminance": 0.02257
}Semantic roles & 50–950 ramp
primary
#2C166F
secondary
#8BA53C
accent
#EA3EBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E