#2D176F#2D176F
#2D176F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.140 H 285.8°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).
Color values
| HEX | #2D176F |
|---|---|
| RGB | rgb(45, 23, 111) |
| HSL | hsl(255, 66%, 26%) |
| HSV | hsv(255, 79%, 44%) |
| CMYK | cmyk(59.5%, 79.3%, 0%, 56.5%) |
| CIE-LAB | lab(17.08, 35.00, -46.86) |
| CIE-LCH | lch(17.08, 58.49, 306.76°) |
| OKLab | oklab(30.08% 0.0383 -0.1349) |
| OKLCH | oklch(30.08% 0.14 285.8) |
| XYZ | xyz(4.2570, 2.3181, 15.2590) |
| Luminance | 0.0232 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.00
Indigo (survey)
#380282
ΔE00 4.72
Dark Royal Blue
#02066F
ΔE00 5.01
Dark Indigo
#1F0954
ΔE00 5.13
Darkblue (survey)
#030764
ΔE00 5.18
Deep Blue
#040273
ΔE00 5.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D176F #596F17
analogous
#172D6F #2D176F #59176F
triadic
#2D176F #6F2D17 #176F2D
tetradic
#2D176F #6F172D #596F17 #176F59
square
#2D176F #6F172D #596F17 #176F59
split-complementary
#2D176F #6F5917 #2D6F17
monochromatic
#0A0519 #180C3C #2D176F #4222A2 #572DD3
Accessibility & contrast
On white
14.35
#2D176F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#2D176F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D176F
14.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D176F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D176F | 1.00 | 14.35 | 1.46 | 14.35 |
| #FFFFFF | 14.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#0D3042
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2d176f; /* rgb */ color: rgb(45, 23, 111); /* oklch */ color: oklch(30.1% 0.140 285.8);
Tailwind
colors: {
custom: {
50: '#6f5799',
500: '#2d176f',
950: '#000000',
},
}SCSS
$custom: #2d176f; $custom-light: #6f5799; $custom-dark: #000000;
JSON
{
"hex": "#2d176f",
"rgb": {
"r": 45,
"g": 23,
"b": 111
},
"hsl": {
"h": 255,
"s": 65.672,
"l": 26.275
},
"oklch": {
"l": 0.30075,
"c": 0.14024,
"h": 285.8
},
"luminance": 0.02318
}Semantic roles & 50–950 ramp
primary
#2D176F
secondary
#8BA53D
accent
#E93FBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E