#5F71EA#5F71EA

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

Color values

HEX#5F71EA
RGBrgb(95, 113, 234)
HSLhsl(232, 77%, 65%)
HSVhsv(232, 59%, 92%)
CMYKcmyk(59.4%, 51.7%, 0%, 8.2%)
CIE-LABlab(52.04, 29.07, -63.44)
CIE-LCHlch(52.04, 69.79, 294.62°)
OKLaboklab(59.77% 0.0103 -0.1818)
OKLCHoklch(59.77% 0.182 273.3)
XYZxyz(25.4708, 20.1817, 80.3792)
Luminance0.2018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F71EA #EAD85F
analogous
#5FB7EA #5F71EA #935FEA
triadic
#5F71EA #EA5F71 #71EA5F
tetradic
#5F71EA #EA5FB7 #EAD85F #5FEA93
square
#5F71EA #EA5FB7 #EAD85F #5FEA93
split-complementary
#5F71EA #EA935F #B7EA5F
monochromatic
#182DB7 #2941E3 #5F71EA #95A1F1 #CBD1F8

Accessibility & contrast

On white

4.17
#5F71EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#5F71EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F71EA
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F71EA#FFFFFF#000000##000000
##5F71EA1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A82EE
Deuteranopia (green-blind)
#0076E7
Tritanopia (blue-blind)
#008DA3
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5f71ea;
/* rgb */ color: rgb(95, 113, 234);
/* oklch */ color: oklch(59.8% 0.182 273.3);
Tailwind
colors: {
  custom: {
    50: '#9899f1',
    500: '#5f71ea',
    950: '#000000',
  },
}
SCSS
$custom: #5f71ea;
$custom-light: #9899f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f71ea",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 232.23,
    "s": 76.796,
    "l": 64.51
  },
  "oklch": {
    "l": 0.59772,
    "c": 0.18205,
    "h": 273.3
  },
  "luminance": 0.20184
}

Semantic roles & 50–950 ramp

primary
#5F71EA
secondary
#EAE4BA
accent
#BF0CD9
background
#FAF9FE
surface
#F3F2FD
border
#CDCCD5
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #5F71EA

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

Preview Lab → · Contrast checker → · Palette generator →

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