#5F71E9#5F71E9

#5F71E9 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.7% C 0.181 H 273.3°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#5F71E9
RGBrgb(95, 113, 233)
HSLhsl(232, 76%, 64%)
HSVhsv(232, 59%, 91%)
CMYKcmyk(59.2%, 51.5%, 0%, 8.6%)
CIE-LABlab(51.98, 28.75, -62.99)
CIE-LCHlch(51.98, 69.23, 294.53°)
OKLaboklab(59.7% 0.0103 -0.1804)
OKLCHoklch(59.7% 0.181 273.3)
XYZxyz(25.3276, 20.1244, 79.6247)
Luminance0.2013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F71E9 #E9D75F
analogous
#5FB6E9 #5F71E9 #925FE9
triadic
#5F71E9 #E95F71 #71E95F
tetradic
#5F71E9 #E95FB6 #E9D75F #5FE992
square
#5F71E9 #E95FB6 #E9D75F #5FE992
split-complementary
#5F71E9 #E9925F #B6E95F
monochromatic
#192DB5 #2941E2 #5F71E9 #95A1F0 #CBD0F8

Accessibility & contrast

On white

4.18
#5F71E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#5F71E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F71E9
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F71E9#FFFFFF#000000##000000
##5F71E91.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f71e9;
/* rgb */ color: rgb(95, 113, 233);
/* oklch */ color: oklch(59.7% 0.181 273.3);
Tailwind
colors: {
  custom: {
    50: '#9899f1',
    500: '#5f71e9',
    950: '#000000',
  },
}
SCSS
$custom: #5f71e9;
$custom-light: #9899f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f71e9",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 233
  },
  "hsl": {
    "h": 232.174,
    "s": 75.824,
    "l": 64.314
  },
  "oklch": {
    "l": 0.59703,
    "c": 0.1807,
    "h": 273.3
  },
  "luminance": 0.20126
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F71E9

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

Preview Lab → · Contrast checker → · Palette generator →

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