#38398F#38398F
#38398F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.139 H 277.5°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).
Color values
| HEX | #38398F |
|---|---|
| RGB | rgb(56, 57, 143) |
| HSL | hsl(239, 44%, 39%) |
| HSV | hsv(239, 61%, 56%) |
| CMYK | cmyk(60.8%, 60.1%, 0%, 43.9%) |
| CIE-LAB | lab(28.77, 26.60, -47.94) |
| CIE-LCH | lch(28.77, 54.82, 299.02°) |
| OKLab | oklab(39.67% 0.0181 -0.1377) |
| OKLCH | oklch(39.67% 0.139 277.5) |
| XYZ | xyz(8.0503, 5.7496, 26.6668) |
| Luminance | 0.0575 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 2.99
Darkslateblue
#483D8B
ΔE00 3.24
Sapphire (survey)
#2138AB
ΔE00 4.79
Ocean Blue
#4F42B5
ΔE00 6.84
Cobalt (survey)
#1E488F
ΔE00 7.88
Cobalt
#0047AB
ΔE00 8.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#38398F #8F8E38
analogous
#38658F #38398F #63388F
triadic
#38398F #8F3839 #398F38
tetradic
#38398F #8F3865 #8F8E38 #388F63
square
#38398F #8F3865 #8F8E38 #388F63
split-complementary
#38398F #8F6338 #658F38
monochromatic
#161637 #272763 #38398F #4B4DB9 #7778CA
Accessibility & contrast
On white
9.77
#38398F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#38398F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #38398F
9.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##38398F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##38398F | 1.00 | 9.77 | 2.15 | 9.77 |
| #FFFFFF | 9.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #38398f; /* rgb */ color: rgb(56, 57, 143); /* oklch */ color: oklch(39.7% 0.139 277.5);
Tailwind
colors: {
custom: {
50: '#786fb0',
500: '#38398f',
950: '#000000',
},
}SCSS
$custom: #38398f; $custom-light: #786fb0; $custom-dark: #000000;
JSON
{
"hex": "#38398f",
"rgb": {
"r": 56,
"g": 57,
"b": 143
},
"hsl": {
"h": 239.31,
"s": 43.719,
"l": 39.02
},
"oklch": {
"l": 0.39669,
"c": 0.1389,
"h": 277.5
},
"luminance": 0.0575
}Semantic roles & 50–950 ramp
primary
#38398F
secondary
#B3B270
accent
#D254D3
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#0A0711
muted
#7C7A80