#2D166F#2D166F
#2D166F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.141 H 286.0°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2D166F |
|---|---|
| RGB | rgb(45, 22, 111) |
| HSL | hsl(256, 67%, 26%) |
| HSV | hsv(256, 80%, 44%) |
| CMYK | cmyk(59.5%, 80.2%, 0%, 56.5%) |
| CIE-LAB | lab(16.89, 35.53, -47.16) |
| CIE-LCH | lch(16.89, 59.05, 306.99°) |
| OKLab | oklab(29.95% 0.039 -0.1358) |
| OKLCH | oklch(29.95% 0.141 286) |
| XYZ | xyz(4.2375, 2.2792, 15.2525) |
| Luminance | 0.0228 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.09
Indigo (survey)
#380282
ΔE00 4.55
Dark Royal Blue
#02066F
ΔE00 4.88
Dark Indigo
#1F0954
ΔE00 5.05
Darkblue (survey)
#030764
ΔE00 5.08
Deep Blue
#040273
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D166F #586F16
analogous
#162B6F #2D166F #59166F
triadic
#2D166F #6F2D16 #166F2D
tetradic
#2D166F #6F162B #586F16 #166F59
square
#2D166F #6F162B #586F16 #166F59
split-complementary
#2D166F #6F5916 #2B6F16
monochromatic
#0A051A #180C3C #2D166F #4220A2 #572BD5
Accessibility & contrast
On white
14.43
#2D166F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#2D166F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D166F
14.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D166F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D166F | 1.00 | 14.43 | 1.46 | 14.43 |
| #FFFFFF | 14.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#0D2F42
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2d166f; /* rgb */ color: rgb(45, 22, 111); /* oklch */ color: oklch(29.9% 0.141 286.0);
Tailwind
colors: {
custom: {
50: '#6f5699',
500: '#2d166f',
950: '#000000',
},
}SCSS
$custom: #2d166f; $custom-light: #6f5699; $custom-dark: #000000;
JSON
{
"hex": "#2d166f",
"rgb": {
"r": 45,
"g": 22,
"b": 111
},
"hsl": {
"h": 255.506,
"s": 66.917,
"l": 26.078
},
"oklch": {
"l": 0.29945,
"c": 0.14131,
"h": 286
},
"luminance": 0.02279
}Semantic roles & 50–950 ramp
primary
#2D166F
secondary
#8AA53C
accent
#EA3EBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E