#2D168F#2D168F
#2D168F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.180 H 279.1°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).
Color values
| HEX | #2D168F |
|---|---|
| RGB | rgb(45, 22, 143) |
| HSL | hsl(251, 73%, 32%) |
| HSV | hsv(251, 85%, 56%) |
| CMYK | cmyk(68.5%, 84.6%, 0%, 43.9%) |
| CIE-LAB | lab(20.50, 45.31, -61.55) |
| CIE-LCH | lch(20.50, 76.43, 306.36°) |
| OKLab | oklab(33.51% 0.0286 -0.1777) |
| OKLCH | oklch(33.51% 0.18 279.1) |
| XYZ | xyz(6.3254, 3.1143, 26.2491) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.60
Indigo (survey)
#380282
ΔE00 3.70
Cobalt Blue
#030AA7
ΔE00 3.96
Darkblue
#00008B
ΔE00 4.32
Royal Blue (survey)
#0504AA
ΔE00 4.35
Ultramarine
#2000B1
ΔE00 4.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D168F #788F16
analogous
#163C8F #2D168F #6A168F
triadic
#2D168F #8F2D16 #168F2D
tetradic
#2D168F #8F163C #788F16 #168F6A
square
#2D168F #8F163C #788F16 #168F6A
split-complementary
#2D168F #8F6A16 #3C8F16
monochromatic
#0C0625 #1C0E5A #2D168F #3E1EC4 #5D3EE1
Accessibility & contrast
On white
12.94
#2D168F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2D168F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D168F
12.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D168F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D168F | 1.00 | 12.94 | 1.62 | 12.94 |
| #FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2d168f; /* rgb */ color: rgb(45, 22, 143); /* oklch */ color: oklch(33.5% 0.180 279.1);
Tailwind
colors: {
custom: {
50: '#7659b1',
500: '#2d168f',
950: '#000000',
},
}SCSS
$custom: #2d168f; $custom-light: #7659b1; $custom-dark: #000000;
JSON
{
"hex": "#2d168f",
"rgb": {
"r": 45,
"g": 22,
"b": 143
},
"hsl": {
"h": 251.405,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.33514,
"c": 0.18001,
"h": 279.1
},
"luminance": 0.03115
}Semantic roles & 50–950 ramp
primary
#2D168F
secondary
#A9C13F
accent
#F038CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980