#2C166B#2C166B
#2C166B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.136 H 286.4°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2C166B |
|---|---|
| RGB | rgb(44, 22, 107) |
| HSL | hsl(256, 66%, 25%) |
| HSV | hsv(256, 79%, 42%) |
| CMYK | cmyk(58.9%, 79.4%, 0%, 58%) |
| CIE-LAB | lab(16.36, 34.13, -45.43) |
| CIE-LCH | lch(16.36, 56.83, 306.92°) |
| OKLab | oklab(29.42% 0.0386 -0.1308) |
| OKLCH | oklch(29.42% 0.136 286.4) |
| XYZ | xyz(3.9787, 2.1706, 14.1164) |
| Luminance | 0.0217 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.14
Dark Indigo
#1F0954
ΔE00 4.49
Darkblue (survey)
#030764
ΔE00 4.95
Dark Royal Blue
#02066F
ΔE00 5.00
Indigo (survey)
#380282
ΔE00 5.13
Deep Blue
#040273
ΔE00 5.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C166B #556B16
analogous
#162B6B #2C166B #56166B
triadic
#2C166B #6B2C16 #166B2C
tetradic
#2C166B #6B162B #556B16 #166B56
square
#2C166B #6B162B #556B16 #166B56
split-complementary
#2C166B #6B5616 #2B6B16
monochromatic
#0A0519 #170C38 #2C166B #41209E #562BD1
Accessibility & contrast
On white
14.64
#2C166B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#2C166B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C166B
14.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C166B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C166B | 1.00 | 14.64 | 1.43 | 14.64 |
| #FFFFFF | 14.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002669
Tritanopia (blue-blind)
#0F2E3F
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2c166b; /* rgb */ color: rgb(44, 22, 107); /* oklch */ color: oklch(29.4% 0.136 286.4);
Tailwind
colors: {
custom: {
50: '#6e5696',
500: '#2c166b',
950: '#000000',
},
}SCSS
$custom: #2c166b; $custom-light: #6e5696; $custom-dark: #000000;
JSON
{
"hex": "#2c166b",
"rgb": {
"r": 44,
"g": 22,
"b": 107
},
"hsl": {
"h": 255.529,
"s": 65.891,
"l": 25.294
},
"oklch": {
"l": 0.29419,
"c": 0.13635,
"h": 286.4
},
"luminance": 0.02171
}Semantic roles & 50–950 ramp
primary
#2C166B
secondary
#87A13B
accent
#E93FBD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E