#2D167C#2D167C
#2D167C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.157 H 282.8°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).
Color values
| HEX | #2D167C |
|---|---|
| RGB | rgb(45, 22, 124) |
| HSL | hsl(254, 70%, 29%) |
| HSV | hsv(254, 82%, 49%) |
| CMYK | cmyk(63.7%, 82.3%, 0%, 51.4%) |
| CIE-LAB | lab(18.31, 39.55, -53.20) |
| CIE-LCH | lch(18.31, 66.29, 306.63°) |
| OKLab | oklab(31.36% 0.0349 -0.1534) |
| OKLCH | oklch(31.36% 0.157 282.8) |
| XYZ | xyz(5.0061, 2.5866, 19.3003) |
| Luminance | 0.0259 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.37
Midnight Blue
#191970
ΔE00 3.46
Royal
#0C1793
ΔE00 4.33
Navy
#000080
ΔE00 4.84
Dark Royal Blue
#02066F
ΔE00 4.87
Deep Blue
#040273
ΔE00 4.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D167C #657C16
analogous
#16327C #2D167C #60167C
triadic
#2D167C #7C2D16 #167C2D
tetradic
#2D167C #7C1632 #657C16 #167C60
square
#2D167C #7C1632 #657C16 #167C60
split-complementary
#2D167C #7C6016 #327C16
monochromatic
#09051A #1A0D48 #2D167C #401FB0 #5832DB
Accessibility & contrast
On white
13.84
#2D167C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#2D167C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D167C
13.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D167C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D167C | 1.00 | 13.84 | 1.52 | 13.84 |
| #FFFFFF | 13.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2d167c; /* rgb */ color: rgb(45, 22, 124); /* oklch */ color: oklch(31.4% 0.157 282.8);
Tailwind
colors: {
custom: {
50: '#7157a3',
500: '#2d167c',
950: '#000000',
},
}SCSS
$custom: #2d167c; $custom-light: #7157a3; $custom-dark: #000000;
JSON
{
"hex": "#2d167c",
"rgb": {
"r": 45,
"g": 22,
"b": 124
},
"hsl": {
"h": 253.529,
"s": 69.863,
"l": 28.627
},
"oklch": {
"l": 0.31357,
"c": 0.15736,
"h": 282.8
},
"luminance": 0.02587
}Semantic roles & 50–950 ramp
primary
#2D167C
secondary
#97B13D
accent
#ED3BC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F