#5F71E4#5F71E4

#5F71E4 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.4% C 0.174 H 273.2°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5F71E4
RGBrgb(95, 113, 228)
HSLhsl(232, 71%, 63%)
HSVhsv(232, 58%, 89%)
CMYKcmyk(58.3%, 50.4%, 0%, 10.6%)
CIE-LABlab(51.66, 27.11, -60.69)
CIE-LCHlch(51.66, 66.47, 294.07°)
OKLaboklab(59.36% 0.0099 -0.1737)
OKLCHoklch(59.36% 0.174 273.2)
XYZxyz(24.6234, 19.8427, 75.9162)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F71E4 #E4D25F
analogous
#5FB3E4 #5F71E4 #8F5FE4
triadic
#5F71E4 #E45F71 #71E45F
tetradic
#5F71E4 #E45FB3 #E4D25F #5FE48F
square
#5F71E4 #E45FB3 #E4D25F #5FE48F
split-complementary
#5F71E4 #E48F5F #B3E45F
monochromatic
#1D30AC #2B43DB #5F71E4 #939FED #C8CEF6

Accessibility & contrast

On white

4.23
#5F71E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#5F71E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F71E4
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F71E4#FFFFFF#000000##000000
##5F71E41.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3281E8
Deuteranopia (green-blind)
#1576E2
Tritanopia (blue-blind)
#008BA0
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f71e4;
/* rgb */ color: rgb(95, 113, 228);
/* oklch */ color: oklch(59.4% 0.174 273.2);
Tailwind
colors: {
  custom: {
    50: '#9799ed',
    500: '#5f71e4',
    950: '#000000',
  },
}
SCSS
$custom: #5f71e4;
$custom-light: #9799ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5f71e4",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 228
  },
  "hsl": {
    "h": 231.88,
    "s": 71.123,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59361,
    "c": 0.17395,
    "h": 273.2
  },
  "luminance": 0.19845
}

Semantic roles & 50–950 ramp

primary
#5F71E4
secondary
#E7E1B8
accent
#B912D3
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0D16
muted
#7E7E84

Preview Lab

Preview with #5F71E4

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

Preview Lab → · Contrast checker → · Palette generator →

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