#2D166C#2D166C
#2D166C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.138 H 286.9°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2D166C |
|---|---|
| RGB | rgb(45, 22, 108) |
| HSL | hsl(256, 66%, 25%) |
| HSV | hsv(256, 80%, 42%) |
| CMYK | cmyk(58.3%, 79.6%, 0%, 57.6%) |
| CIE-LAB | lab(16.57, 34.60, -45.73) |
| CIE-LCH | lch(16.57, 57.34, 307.11°) |
| OKLab | oklab(29.63% 0.0399 -0.1316) |
| OKLCH | oklch(29.63% 0.138 286.9) |
| XYZ | xyz(4.0751, 2.2142, 14.3971) |
| Luminance | 0.0221 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.24
Dark Indigo
#1F0954
ΔE00 4.65
Indigo (survey)
#380282
ΔE00 4.94
Dark Royal Blue
#02066F
ΔE00 5.06
Darkblue (survey)
#030764
ΔE00 5.07
Deep Blue
#040273
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D166C #556C16
analogous
#162A6C #2D166C #58166C
triadic
#2D166C #6C2D16 #166C2D
tetradic
#2D166C #6C162A #556C16 #166C58
square
#2D166C #6C162A #556C16 #166C58
split-complementary
#2D166C #6C5816 #2A6C16
monochromatic
#0B0519 #180C39 #2D166C #42209F #572BD2
Accessibility & contrast
On white
14.56
#2D166C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2D166C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D166C
14.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D166C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D166C | 1.00 | 14.56 | 1.44 | 14.56 |
| #FFFFFF | 14.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#112E40
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2d166c; /* rgb */ color: rgb(45, 22, 108); /* oklch */ color: oklch(29.6% 0.138 286.9);
Tailwind
colors: {
custom: {
50: '#6e5697',
500: '#2d166c',
950: '#000000',
},
}SCSS
$custom: #2d166c; $custom-light: #6e5697; $custom-dark: #000000;
JSON
{
"hex": "#2d166c",
"rgb": {
"r": 45,
"g": 22,
"b": 108
},
"hsl": {
"h": 256.047,
"s": 66.154,
"l": 25.49
},
"oklch": {
"l": 0.29628,
"c": 0.13753,
"h": 286.9
},
"luminance": 0.02214
}Semantic roles & 50–950 ramp
primary
#2D166C
secondary
#87A23C
accent
#E93FBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E