#5A70F4#5A70F4
#5A70F4 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 60.0% C 0.198 H 271.9°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #5A70F4 |
|---|---|
| RGB | rgb(90, 112, 244) |
| HSL | hsl(231, 88%, 65%) |
| HSV | hsv(231, 63%, 96%) |
| CMYK | cmyk(63.1%, 54.1%, 0%, 4.3%) |
| CIE-LAB | lab(52.17, 32.15, -68.84) |
| CIE-LCH | lch(52.17, 75.98, 295.03°) |
| OKLab | oklab(60% 0.0067 -0.1978) |
| OKLCH | oklch(60% 0.198 271.9) |
| XYZ | xyz(26.3343, 20.2914, 88.0993) |
| Luminance | 0.2029 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 3.40
Cornflower Blue
#5170D7
ΔE00 4.31
Royal Blue
#4169E1
ΔE00 4.92
Lightish Blue
#3D7AFD
ΔE00 5.28
Bright Blue
#0165FC
ΔE00 6.16
Mediumslateblue
#7B68EE
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A70F4 #F4DE5A
analogous
#5ABDF4 #5A70F4 #915AF4
triadic
#5A70F4 #F45A70 #70F45A
tetradic
#5A70F4 #F45ABD #F4DE5A #5AF491
square
#5A70F4 #F45ABD #F4DE5A #5AF491
split-complementary
#5A70F4 #F4915A #BDF45A
monochromatic
#0D28C6 #213EF0 #5A70F4 #93A2F8 #CDD3FC
Accessibility & contrast
On white
4.15
#5A70F4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.06
#5A70F4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5A70F4
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A70F4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5A70F4 | 1.00 | 4.15 | 5.06 | 5.06 |
| #FFFFFF | 4.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.06 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.06 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0384F9
Deuteranopia (green-blind)
#0076F1
Tritanopia (blue-blind)
#008FA7
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #5a70f4; /* rgb */ color: rgb(90, 112, 244); /* oklch */ color: oklch(60.0% 0.198 271.9);
Tailwind
colors: {
custom: {
50: '#9798f9',
500: '#5a70f4',
950: '#000000',
},
}SCSS
$custom: #5a70f4; $custom-light: #9798f9; $custom-dark: #000000;
JSON
{
"hex": "#5a70f4",
"rgb": {
"r": 90,
"g": 112,
"b": 244
},
"hsl": {
"h": 231.429,
"s": 87.5,
"l": 65.49
},
"oklch": {
"l": 0.59999,
"c": 0.19788,
"h": 271.9
},
"luminance": 0.20294
}Semantic roles & 50–950 ramp
primary
#5A70F4
secondary
#EFE7BB
accent
#C401E4
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0D17
muted
#7F7E85