#5F70EB#5F70EB

#5F70EB is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.7% C 0.185 H 273.5°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5F70EB
RGBrgb(95, 112, 235)
HSLhsl(233, 78%, 65%)
HSVhsv(233, 60%, 92%)
CMYKcmyk(59.6%, 52.3%, 0%, 7.8%)
CIE-LABlab(51.86, 30.01, -64.30)
CIE-LCHlch(51.86, 70.96, 295.02°)
OKLaboklab(59.65% 0.0114 -0.1843)
OKLCHoklch(59.65% 0.185 273.5)
XYZxyz(25.5039, 20.0174, 81.1009)
Luminance0.2002 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F70EB #EBDA5F
analogous
#5FB6EB #5F70EB #945FEB
triadic
#5F70EB #EB5F70 #70EB5F
tetradic
#5F70EB #EB5FB6 #EBDA5F #5FEB94
square
#5F70EB #EB5FB6 #EBDA5F #5FEB94
split-complementary
#5F70EB #EB945F #B6EB5F
monochromatic
#172BB9 #293FE4 #5F70EB #95A1F2 #CCD1F9

Accessibility & contrast

On white

4.20
#5F70EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#5F70EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F70EB
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F70EB#FFFFFF#000000##000000
##5F70EB1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2482EF
Deuteranopia (green-blind)
#0076E8
Tritanopia (blue-blind)
#008DA3
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5f70eb;
/* rgb */ color: rgb(95, 112, 235);
/* oklch */ color: oklch(59.7% 0.185 273.5);
Tailwind
colors: {
  custom: {
    50: '#9898f2',
    500: '#5f70eb',
    950: '#000000',
  },
}
SCSS
$custom: #5f70eb;
$custom-light: #9898f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f70eb",
  "rgb": {
    "r": 95,
    "g": 112,
    "b": 235
  },
  "hsl": {
    "h": 232.714,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59654,
    "c": 0.18464,
    "h": 273.5
  },
  "luminance": 0.20019
}

Semantic roles & 50–950 ramp

primary
#5F70EB
secondary
#EBE5BB
accent
#C10BDA
background
#FAF9FE
surface
#F3F2FD
border
#CDCCD5
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #5F70EB

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

Preview Lab → · Contrast checker → · Palette generator →

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