#2D178F#2D178F
#2D178F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.179 H 279.0°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).
Color values
| HEX | #2D178F |
|---|---|
| RGB | rgb(45, 23, 143) |
| HSL | hsl(251, 72%, 33%) |
| HSV | hsv(251, 84%, 56%) |
| CMYK | cmyk(68.5%, 83.9%, 0%, 43.9%) |
| CIE-LAB | lab(20.65, 44.87, -61.30) |
| CIE-LCH | lch(20.65, 75.96, 306.20°) |
| OKLab | oklab(33.62% 0.0281 -0.177) |
| OKLCH | oklch(33.62% 0.179 279) |
| XYZ | xyz(6.3449, 3.1533, 26.2556) |
| Luminance | 0.0315 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.57
Indigo (survey)
#380282
ΔE00 3.84
Cobalt Blue
#030AA7
ΔE00 4.02
Royal Blue (survey)
#0504AA
ΔE00 4.43
Darkblue
#00008B
ΔE00 4.45
Ultramarine
#2000B1
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D178F #798F17
analogous
#173D8F #2D178F #69178F
triadic
#2D178F #8F2D17 #178F2D
tetradic
#2D178F #8F173D #798F17 #178F69
square
#2D178F #8F173D #798F17 #178F69
split-complementary
#2D178F #8F6917 #3D8F17
monochromatic
#0C0626 #1C0F5A #2D178F #3E1FC4 #5D40E0
Accessibility & contrast
On white
12.88
#2D178F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2D178F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D178F
12.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D178F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D178F | 1.00 | 12.88 | 1.63 | 12.88 |
| #FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2d178f; /* rgb */ color: rgb(45, 23, 143); /* oklch */ color: oklch(33.6% 0.179 279.0);
Tailwind
colors: {
custom: {
50: '#7659b1',
500: '#2d178f',
950: '#000000',
},
}SCSS
$custom: #2d178f; $custom-light: #7659b1; $custom-dark: #000000;
JSON
{
"hex": "#2d178f",
"rgb": {
"r": 45,
"g": 23,
"b": 143
},
"hsl": {
"h": 251,
"s": 72.289,
"l": 32.549
},
"oklch": {
"l": 0.33619,
"c": 0.17924,
"h": 279
},
"luminance": 0.03154
}Semantic roles & 50–950 ramp
primary
#2D178F
secondary
#A9C141
accent
#EF39CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980