#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
RGBrgb(90, 112, 244)
HSLhsl(231, 88%, 65%)
HSVhsv(231, 63%, 96%)
CMYKcmyk(63.1%, 54.1%, 0%, 4.3%)
CIE-LABlab(52.17, 32.15, -68.84)
CIE-LCHlch(52.17, 75.98, 295.03°)
OKLaboklab(60% 0.0067 -0.1978)
OKLCHoklch(60% 0.198 271.9)
XYZxyz(26.3343, 20.2914, 88.0993)
Luminance0.2029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

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
##5A70F41.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.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

Preview Lab

Preview with #5A70F4

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5A70F4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva