#5B70F2#5B70F2

#5B70F2 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.9% C 0.195 H 272.2°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#5B70F2
RGBrgb(91, 112, 242)
HSLhsl(232, 85%, 65%)
HSVhsv(232, 62%, 95%)
CMYKcmyk(62.4%, 53.7%, 0%, 5.1%)
CIE-LABlab(52.09, 31.64, -67.85)
CIE-LCHlch(52.09, 74.87, 295.00°)
OKLaboklab(59.91% 0.0076 -0.1948)
OKLCHoklch(59.91% 0.195 272.2)
XYZxyz(26.1302, 20.2211, 86.5132)
Luminance0.2022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B70F2 #F2DD5B
analogous
#5BBBF2 #5B70F2 #925BF2
triadic
#5B70F2 #F25B70 #70F25B
tetradic
#5B70F2 #F25BBB #F2DD5B #5BF292
square
#5B70F2 #F25BBB #F2DD5B #5BF292
split-complementary
#5B70F2 #F2925B #BBF25B
monochromatic
#0F28C3 #223FEE #5B70F2 #94A1F6 #CCD3FB

Accessibility & contrast

On white

4.16
#5B70F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#5B70F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B70F2
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B70F2#FFFFFF#000000##000000
##5B70F21.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0E83F7
Deuteranopia (green-blind)
#0076EF
Tritanopia (blue-blind)
#008FA6
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5b70f2;
/* rgb */ color: rgb(91, 112, 242);
/* oklch */ color: oklch(59.9% 0.195 272.2);
Tailwind
colors: {
  custom: {
    50: '#9798f7',
    500: '#5b70f2',
    950: '#000000',
  },
}
SCSS
$custom: #5b70f2;
$custom-light: #9798f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b70f2",
  "rgb": {
    "r": 91,
    "g": 112,
    "b": 242
  },
  "hsl": {
    "h": 231.656,
    "s": 85.311,
    "l": 65.294
  },
  "oklch": {
    "l": 0.59912,
    "c": 0.19499,
    "h": 272.2
  },
  "luminance": 0.20223
}

Semantic roles & 50–950 ramp

primary
#5B70F2
secondary
#EEE7BB
accent
#C304E2
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #5B70F2

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

Preview Lab → · Contrast checker → · Palette generator →

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