#2D168C#2D168C
#2D168C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.176 H 279.7°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).
Color values
| HEX | #2D168C |
|---|---|
| RGB | rgb(45, 22, 140) |
| HSL | hsl(252, 73%, 32%) |
| HSV | hsv(252, 84%, 55%) |
| CMYK | cmyk(67.9%, 84.3%, 0%, 45.1%) |
| CIE-LAB | lab(20.14, 44.41, -60.26) |
| CIE-LCH | lch(20.14, 74.86, 306.39°) |
| OKLab | oklab(33.17% 0.0296 -0.174) |
| OKLCH | oklch(33.17% 0.176 279.7) |
| XYZ | xyz(6.1012, 3.0247, 25.0682) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.73
Indigo (survey)
#380282
ΔE00 3.50
Darkblue
#00008B
ΔE00 4.28
Cobalt Blue
#030AA7
ΔE00 4.31
Royal Blue (survey)
#0504AA
ΔE00 4.70
Navy
#000080
ΔE00 4.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D168C #758C16
analogous
#163A8C #2D168C #68168C
triadic
#2D168C #8C2D16 #168C2D
tetradic
#2D168C #8C163A #758C16 #168C68
square
#2D168C #8C163A #758C16 #168C68
split-complementary
#2D168C #8C6816 #3A8C16
monochromatic
#0B0522 #1C0E57 #2D168C #3E1EC1 #5C3CE0
Accessibility & contrast
On white
13.08
#2D168C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2D168C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D168C
13.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D168C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D168C | 1.00 | 13.08 | 1.61 | 13.08 |
| #FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002C8A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2d168c; /* rgb */ color: rgb(45, 22, 140); /* oklch */ color: oklch(33.2% 0.176 279.7);
Tailwind
colors: {
custom: {
50: '#7558af',
500: '#2d168c',
950: '#000000',
},
}SCSS
$custom: #2d168c; $custom-light: #7558af; $custom-dark: #000000;
JSON
{
"hex": "#2d168c",
"rgb": {
"r": 45,
"g": 22,
"b": 140
},
"hsl": {
"h": 251.695,
"s": 72.84,
"l": 31.765
},
"oklch": {
"l": 0.33168,
"c": 0.17649,
"h": 279.7
},
"luminance": 0.03025
}Semantic roles & 50–950 ramp
primary
#2D168C
secondary
#A6C03E
accent
#F038CC
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980