#2D176B#2D176B
#2D176B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.135 H 286.9°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).
Color values
| HEX | #2D176B |
|---|---|
| RGB | rgb(45, 23, 107) |
| HSL | hsl(256, 65%, 25%) |
| HSV | hsv(256, 79%, 42%) |
| CMYK | cmyk(57.9%, 78.5%, 0%, 58%) |
| CIE-LAB | lab(16.66, 33.74, -44.93) |
| CIE-LCH | lch(16.66, 56.19, 306.90°) |
| OKLab | oklab(29.66% 0.0394 -0.1293) |
| OKLCH | oklch(29.66% 0.135 286.9) |
| XYZ | xyz(4.0416, 2.2320, 14.1249) |
| Luminance | 0.0223 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.23
Dark Indigo
#1F0954
ΔE00 4.61
Darkblue (survey)
#030764
ΔE00 5.20
Indigo (survey)
#380282
ΔE00 5.25
Dark Royal Blue
#02066F
ΔE00 5.26
Deep Blue
#040273
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D176B #556B17
analogous
#172B6B #2D176B #57176B
triadic
#2D176B #6B2D17 #176B2D
tetradic
#2D176B #6B172B #556B17 #176B57
square
#2D176B #6B172B #556B17 #176B57
split-complementary
#2D176B #6B5717 #2B6B17
monochromatic
#0B0519 #180C39 #2D176B #42229D #572DD0
Accessibility & contrast
On white
14.52
#2D176B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2D176B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D176B
14.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D176B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D176B | 1.00 | 14.52 | 1.45 | 14.52 |
| #FFFFFF | 14.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#122E40
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2d176b; /* rgb */ color: rgb(45, 23, 107); /* oklch */ color: oklch(29.7% 0.135 286.9);
Tailwind
colors: {
custom: {
50: '#6e5796',
500: '#2d176b',
950: '#000000',
},
}SCSS
$custom: #2d176b; $custom-light: #6e5796; $custom-dark: #000000;
JSON
{
"hex": "#2d176b",
"rgb": {
"r": 45,
"g": 23,
"b": 107
},
"hsl": {
"h": 255.714,
"s": 64.615,
"l": 25.49
},
"oklch": {
"l": 0.29658,
"c": 0.13516,
"h": 286.9
},
"luminance": 0.02232
}Semantic roles & 50–950 ramp
primary
#2D176B
secondary
#87A13D
accent
#E840BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E