#1538B4#1538B4
#1538B4 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.2% C 0.198 H 265.3°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).
Color values
| HEX | #1538B4 |
|---|---|
| RGB | rgb(21, 56, 180) |
| HSL | hsl(227, 79%, 39%) |
| HSV | hsv(227, 88%, 71%) |
| CMYK | cmyk(88.3%, 68.9%, 0%, 29.4%) |
| CIE-LAB | lab(30.11, 36.96, -68.20) |
| CIE-LCH | lch(30.11, 77.57, 298.45°) |
| OKLab | oklab(41.2% -0.0164 -0.1978) |
| OKLCH | oklch(41.2% 0.198 265.3) |
| XYZ | xyz(9.9587, 6.2818, 43.8588) |
| Luminance | 0.0628 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.25
Blue Blue
#2242C7
ΔE00 3.80
Cobalt
#0047AB
ΔE00 5.82
Blue (survey)
#0343DF
ΔE00 6.22
Ocean Blue
#4F42B5
ΔE00 6.26
Blueberry
#464196
ΔE00 6.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1538B4 #B49115
analogous
#1588B4 #1538B4 #4115B4
triadic
#1538B4 #B41538 #38B415
tetradic
#1538B4 #B41588 #B49115 #15B441
square
#1538B4 #B41588 #B49115 #15B441
split-complementary
#1538B4 #B44115 #88B415
monochromatic
#081646 #0F277D #1538B4 #214CE5 #5878EC
Accessibility & contrast
On white
9.31
#1538B4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#1538B4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1538B4
9.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1538B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1538B4 | 1.00 | 9.31 | 2.26 | 9.31 |
| #FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#003FB2
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #1538b4; /* rgb */ color: rgb(21, 56, 180); /* oklch */ color: oklch(41.2% 0.198 265.3);
Tailwind
colors: {
custom: {
50: '#756ecc',
500: '#1538b4',
950: '#000000',
},
}SCSS
$custom: #1538b4; $custom-light: #756ecc; $custom-dark: #000000;
JSON
{
"hex": "#1538b4",
"rgb": {
"r": 21,
"g": 56,
"b": 180
},
"hsl": {
"h": 226.792,
"s": 79.104,
"l": 39.412
},
"oklch": {
"l": 0.41204,
"c": 0.19846,
"h": 265.3
},
"luminance": 0.06283
}Semantic roles & 50–950 ramp
primary
#1538B4
secondary
#CFB456
accent
#CB32F6
background
#F7F6FC
surface
#EEECF9
border
#C9C7D2
text
#0A0713
muted
#7C7A82