#2D167F#2D167F
#2D167F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.161 H 282.2°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).
Color values
| HEX | #2D167F |
|---|---|
| RGB | rgb(45, 22, 127) |
| HSL | hsl(253, 70%, 29%) |
| HSV | hsv(253, 83%, 50%) |
| CMYK | cmyk(64.6%, 82.7%, 0%, 50.2%) |
| CIE-LAB | lab(18.64, 40.47, -54.55) |
| CIE-LCH | lch(18.64, 67.93, 306.57°) |
| OKLab | oklab(31.69% 0.0339 -0.1574) |
| OKLCH | oklch(31.69% 0.161 282.2) |
| XYZ | xyz(5.1987, 2.6636, 20.3147) |
| Luminance | 0.0266 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.25
Midnight Blue
#191970
ΔE00 3.72
Royal
#0C1793
ΔE00 3.94
Darkblue
#00008B
ΔE00 4.72
Navy
#000080
ΔE00 4.75
Deep Blue
#040273
ΔE00 5.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D167F #687F16
analogous
#16347F #2D167F #62167F
triadic
#2D167F #7F2D16 #167F2D
tetradic
#2D167F #7F1634 #687F16 #167F62
square
#2D167F #7F1634 #687F16 #167F62
split-complementary
#2D167F #7F6216 #347F16
monochromatic
#09051A #1B0D4B #2D167F #3F1FB3 #5834DC
Accessibility & contrast
On white
13.70
#2D167F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#2D167F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D167F
13.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D167F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D167F | 1.00 | 13.70 | 1.53 | 13.70 |
| #FFFFFF | 13.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2d167f; /* rgb */ color: rgb(45, 22, 127); /* oklch */ color: oklch(31.7% 0.161 282.2);
Tailwind
colors: {
custom: {
50: '#7257a5',
500: '#2d167f',
950: '#000000',
},
}SCSS
$custom: #2d167f; $custom-light: #7257a5; $custom-dark: #000000;
JSON
{
"hex": "#2d167f",
"rgb": {
"r": 45,
"g": 22,
"b": 127
},
"hsl": {
"h": 253.143,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.31691,
"c": 0.16099,
"h": 282.2
},
"luminance": 0.02664
}Semantic roles & 50–950 ramp
primary
#2D167F
secondary
#9AB43D
accent
#ED3BC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F