#2D177F#2D177F
#2D177F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.160 H 282.0°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2D177F |
|---|---|
| RGB | rgb(45, 23, 127) |
| HSL | hsl(253, 69%, 29%) |
| HSV | hsv(253, 82%, 50%) |
| CMYK | cmyk(64.6%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(18.81, 39.99, -54.28) |
| CIE-LCH | lch(18.81, 67.41, 306.38°) |
| OKLab | oklab(31.81% 0.0334 -0.1566) |
| OKLCH | oklch(31.81% 0.16 282) |
| XYZ | xyz(5.2182, 2.7026, 20.3212) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.43
Midnight Blue
#191970
ΔE00 3.64
Royal
#0C1793
ΔE00 3.93
Darkblue
#00008B
ΔE00 4.86
Navy
#000080
ΔE00 4.89
Dark Royal Blue
#02066F
ΔE00 5.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D177F #697F17
analogous
#17357F #2D177F #61177F
triadic
#2D177F #7F2D17 #177F2D
tetradic
#2D177F #7F1735 #697F17 #177F61
square
#2D177F #7F1735 #697F17 #177F61
split-complementary
#2D177F #7F6117 #357F17
monochromatic
#09051A #1B0E4B #2D177F #3F20B3 #5936DB
Accessibility & contrast
On white
13.63
#2D177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2D177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D177F
13.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D177F | 1.00 | 13.63 | 1.54 | 13.63 |
| #FFFFFF | 13.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2d177f; /* rgb */ color: rgb(45, 23, 127); /* oklch */ color: oklch(31.8% 0.160 282.0);
Tailwind
colors: {
custom: {
50: '#7258a5',
500: '#2d177f',
950: '#000000',
},
}SCSS
$custom: #2d177f; $custom-light: #7258a5; $custom-dark: #000000;
JSON
{
"hex": "#2d177f",
"rgb": {
"r": 45,
"g": 23,
"b": 127
},
"hsl": {
"h": 252.692,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.31807,
"c": 0.16009,
"h": 282
},
"luminance": 0.02703
}Semantic roles & 50–950 ramp
primary
#2D177F
secondary
#9BB43E
accent
#EC3CC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F