#5F71EB#5F71EB

#5F71EB is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.8% C 0.183 H 273.3°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5F71EB
RGBrgb(95, 113, 235)
HSLhsl(232, 78%, 65%)
HSVhsv(232, 60%, 92%)
CMYKcmyk(59.6%, 51.9%, 0%, 7.8%)
CIE-LABlab(52.11, 29.40, -63.90)
CIE-LCHlch(52.11, 70.34, 294.71°)
OKLaboklab(59.84% 0.0104 -0.1831)
OKLCHoklch(59.84% 0.183 273.3)
XYZxyz(25.6149, 20.2393, 81.1379)
Luminance0.2024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F71EB #EBD95F
analogous
#5FB7EB #5F71EB #935FEB
triadic
#5F71EB #EB5F71 #71EB5F
tetradic
#5F71EB #EB5FB7 #EBD95F #5FEB93
square
#5F71EB #EB5FB7 #EBD95F #5FEB93
split-complementary
#5F71EB #EB935F #B7EB5F
monochromatic
#172CB9 #2941E4 #5F71EB #95A1F2 #CCD2F9

Accessibility & contrast

On white

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

On black

5.05
#5F71EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F71EB
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F71EB#FFFFFF#000000##000000
##5F71EB1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f71eb;
/* rgb */ color: rgb(95, 113, 235);
/* oklch */ color: oklch(59.8% 0.183 273.3);
Tailwind
colors: {
  custom: {
    50: '#9899f2',
    500: '#5f71eb',
    950: '#000000',
  },
}
SCSS
$custom: #5f71eb;
$custom-light: #9899f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f71eb",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 232.286,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59842,
    "c": 0.1834,
    "h": 273.3
  },
  "luminance": 0.20241
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F71EB

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

Preview Lab → · Contrast checker → · Palette generator →

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