#38318F#38318F
#38318F is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.149 H 280.0°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).
Color values
| HEX | #38318F |
|---|---|
| RGB | rgb(56, 49, 143) |
| HSL | hsl(244, 49%, 38%) |
| HSV | hsv(244, 66%, 56%) |
| CMYK | cmyk(60.8%, 65.7%, 0%, 43.9%) |
| CIE-LAB | lab(26.79, 31.77, -51.16) |
| CIE-LCH | lch(26.79, 60.22, 301.84°) |
| OKLab | oklab(38.22% 0.0259 -0.1472) |
| OKLCH | oklch(38.22% 0.149 280) |
| XYZ | xyz(7.6856, 5.0200, 26.5452) |
| Luminance | 0.0502 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.35
Blueberry
#464196
ΔE00 4.77
Sapphire (survey)
#2138AB
ΔE00 5.23
Royal
#0C1793
ΔE00 7.02
Indigo Blue
#3A18B1
ΔE00 7.31
Ocean Blue
#4F42B5
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#38318F #888F31
analogous
#31598F #38318F #67318F
triadic
#38318F #8F3831 #318F38
tetradic
#38318F #8F3159 #888F31 #318F67
square
#38318F #8F3159 #888F31 #318F67
split-complementary
#38318F #8F6731 #598F31
monochromatic
#141234 #262161 #38318F #4A41BD #746DCD
Accessibility & contrast
On white
10.48
#38318F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#38318F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #38318F
10.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##38318F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##38318F | 1.00 | 10.48 | 2.00 | 10.48 |
| #FFFFFF | 10.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #38318f; /* rgb */ color: rgb(56, 49, 143); /* oklch */ color: oklch(38.2% 0.149 280.0);
Tailwind
colors: {
custom: {
50: '#786ab1',
500: '#38318f',
950: '#000000',
},
}SCSS
$custom: #38318f; $custom-light: #786ab1; $custom-dark: #000000;
JSON
{
"hex": "#38318f",
"rgb": {
"r": 56,
"g": 49,
"b": 143
},
"hsl": {
"h": 244.468,
"s": 48.958,
"l": 37.647
},
"oklch": {
"l": 0.38216,
"c": 0.14949,
"h": 280
},
"luminance": 0.05021
}Semantic roles & 50–950 ramp
primary
#38318F
secondary
#AFB567
accent
#D94FCE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80