#5F70E6#5F70E6

#5F70E6 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.3% C 0.178 H 273.6°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#5F70E6
RGBrgb(95, 112, 230)
HSLhsl(232, 73%, 64%)
HSVhsv(232, 59%, 90%)
CMYKcmyk(58.7%, 51.3%, 0%, 9.8%)
CIE-LABlab(51.53, 28.37, -62.02)
CIE-LCHlch(51.53, 68.20, 294.58°)
OKLaboklab(59.31% 0.011 -0.1776)
OKLCHoklch(59.31% 0.178 273.6)
XYZxyz(24.7917, 19.7325, 77.3499)
Luminance0.1973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F70E6 #E6D55F
analogous
#5FB3E6 #5F70E6 #915FE6
triadic
#5F70E6 #E65F70 #70E65F
tetradic
#5F70E6 #E65FB3 #E6D55F #5FE691
square
#5F70E6 #E65FB3 #E6D55F #5FE691
split-complementary
#5F70E6 #E6915F #B3E65F
monochromatic
#1B2EAF #2A41DE #5F70E6 #949FEE #C9CFF7

Accessibility & contrast

On white

4.25
#5F70E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#5F70E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F70E6
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F70E6#FFFFFF#000000##000000
##5F70E61.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D81EA
Deuteranopia (green-blind)
#0475E4
Tritanopia (blue-blind)
#008BA0
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f70e6;
/* rgb */ color: rgb(95, 112, 230);
/* oklch */ color: oklch(59.3% 0.178 273.6);
Tailwind
colors: {
  custom: {
    50: '#9798ef',
    500: '#5f70e6',
    950: '#000000',
  },
}
SCSS
$custom: #5f70e6;
$custom-light: #9798ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5f70e6",
  "rgb": {
    "r": 95,
    "g": 112,
    "b": 230
  },
  "hsl": {
    "h": 232.444,
    "s": 72.973,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59307,
    "c": 0.17792,
    "h": 273.6
  },
  "luminance": 0.19734
}

Semantic roles & 50–950 ramp

primary
#5F70E6
secondary
#E8E2B9
accent
#BC10D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0D16
muted
#7E7E84

Preview Lab

Preview with #5F70E6

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

Preview Lab → · Contrast checker → · Palette generator →

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