#5F71EC#5F71EC

#5F71EC is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.9% C 0.185 H 273.2°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#5F71EC
RGBrgb(95, 113, 236)
HSLhsl(232, 79%, 65%)
HSVhsv(232, 60%, 93%)
CMYKcmyk(59.7%, 52.1%, 0%, 7.5%)
CIE-LABlab(52.17, 29.73, -64.35)
CIE-LCHlch(52.17, 70.89, 294.80°)
OKLaboklab(59.91% 0.0105 -0.1844)
OKLCHoklch(59.91% 0.185 273.2)
XYZxyz(25.7598, 20.2972, 81.9009)
Luminance0.2030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F71EC #ECDA5F
analogous
#5FB8EC #5F71EC #935FEC
triadic
#5F71EC #EC5F71 #71EC5F
tetradic
#5F71EC #EC5FB8 #ECDA5F #5FEC93
square
#5F71EC #EC5FB8 #ECDA5F #5FEC93
split-complementary
#5F71EC #EC935F #B8EC5F
monochromatic
#162BBA #2840E6 #5F71EC #96A2F2 #CCD2F9

Accessibility & contrast

On white

4.15
#5F71EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#5F71EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F71EC
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F71EC#FFFFFF#000000##000000
##5F71EC1.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)
#2683F0
Deuteranopia (green-blind)
#0077E9
Tritanopia (blue-blind)
#008EA4
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5f71ec;
/* rgb */ color: rgb(95, 113, 236);
/* oklch */ color: oklch(59.9% 0.185 273.2);
Tailwind
colors: {
  custom: {
    50: '#9899f3',
    500: '#5f71ec',
    950: '#000000',
  },
}
SCSS
$custom: #5f71ec;
$custom-light: #9899f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f71ec",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 232.34,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.59911,
    "c": 0.18473,
    "h": 273.2
  },
  "luminance": 0.20299
}

Semantic roles & 50–950 ramp

primary
#5F71EC
secondary
#EBE5BB
accent
#C00ADB
background
#FAF9FE
surface
#F3F2FD
border
#CDCCD5
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F71EC

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

Preview Lab → · Contrast checker → · Palette generator →

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