#5F71EF#5F71EF

#5F71EF is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.1% C 0.189 H 273.2°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#5F71EF
RGBrgb(95, 113, 239)
HSLhsl(233, 82%, 65%)
HSVhsv(233, 60%, 94%)
CMYKcmyk(60.3%, 52.7%, 0%, 6.3%)
CIE-LABlab(52.37, 30.71, -65.71)
CIE-LCHlch(52.37, 72.53, 295.05°)
OKLaboklab(60.12% 0.0107 -0.1884)
OKLCHoklch(60.12% 0.189 273.2)
XYZxyz(26.1993, 20.4730, 84.2157)
Luminance0.2047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F71EF #EFDD5F
analogous
#5FB9EF #5F71EF #955FEF
triadic
#5F71EF #EF5F71 #71EF5F
tetradic
#5F71EF #EF5FB9 #EFDD5F #5FEF95
square
#5F71EF #EF5FB9 #EFDD5F #5FEF95
split-complementary
#5F71EF #EF955F #B9EF5F
monochromatic
#1329C0 #2740E9 #5F71EF #97A2F5 #CED4FA

Accessibility & contrast

On white

4.12
#5F71EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#5F71EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F71EF
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F71EF#FFFFFF#000000##000000
##5F71EF1.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2083F3
Deuteranopia (green-blind)
#0077EC
Tritanopia (blue-blind)
#008EA5
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5f71ef;
/* rgb */ color: rgb(95, 113, 239);
/* oklch */ color: oklch(60.1% 0.189 273.2);
Tailwind
colors: {
  custom: {
    50: '#9999f5',
    500: '#5f71ef',
    950: '#000000',
  },
}
SCSS
$custom: #5f71ef;
$custom-light: #9999f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f71ef",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 232.5,
    "s": 81.818,
    "l": 65.49
  },
  "oklch": {
    "l": 0.60121,
    "c": 0.18873,
    "h": 273.2
  },
  "luminance": 0.20475
}

Semantic roles & 50–950 ramp

primary
#5F71EF
secondary
#EDE7BD
accent
#C307DE
background
#FAF9FF
surface
#F3F2FE
border
#CDCCD6
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F71EF

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

Preview Lab → · Contrast checker → · Palette generator →

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