#38169E#38169E
#38169E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.195 H 282.0°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).
Color values
| HEX | #38169E |
|---|---|
| RGB | rgb(56, 22, 158) |
| HSL | hsl(255, 76%, 35%) |
| HSV | hsv(255, 86%, 62%) |
| CMYK | cmyk(64.6%, 86.1%, 0%, 38%) |
| CIE-LAB | lab(23.28, 50.61, -66.16) |
| CIE-LCH | lch(23.28, 83.30, 307.41°) |
| OKLab | oklab(36.19% 0.0406 -0.1909) |
| OKLCH | oklch(36.19% 0.195 282) |
| XYZ | xyz(8.0874, 3.8826, 32.6644) |
| Luminance | 0.0388 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.64
Ultramarine
#2000B1
ΔE00 3.54
Cobalt Blue
#030AA7
ΔE00 3.76
Royal Blue (survey)
#0504AA
ΔE00 3.93
Royal
#0C1793
ΔE00 4.14
Indigo (survey)
#380282
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#38169E #7C9E16
analogous
#16389E #38169E #7C169E
triadic
#38169E #9E3816 #169E38
tetradic
#38169E #9E1638 #7C9E16 #169E7C
square
#38169E #9E1638 #7C9E16 #169E7C
split-complementary
#38169E #9E7C16 #389E16
monochromatic
#120733 #250F68 #38169E #4B1DD4 #7049E6
Accessibility & contrast
On white
11.82
#38169E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#38169E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #38169E
11.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##38169E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##38169E | 1.00 | 11.82 | 1.78 | 11.82 |
| #FFFFFF | 11.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00425D
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #38169e; /* rgb */ color: rgb(56, 22, 158); /* oklch */ color: oklch(36.2% 0.195 282.0);
Tailwind
colors: {
custom: {
50: '#7e5bbc',
500: '#38169e',
950: '#000000',
},
}SCSS
$custom: #38169e; $custom-light: #7e5bbc; $custom-dark: #000000;
JSON
{
"hex": "#38169e",
"rgb": {
"r": 56,
"g": 22,
"b": 158
},
"hsl": {
"h": 255,
"s": 75.556,
"l": 35.294
},
"oklch": {
"l": 0.36188,
"c": 0.19513,
"h": 282
},
"luminance": 0.03883
}Semantic roles & 50–950 ramp
primary
#38169E
secondary
#A7C749
accent
#F236C3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981