#5F71E1#5F71E1

#5F71E1 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.2% C 0.170 H 273.2°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5F71E1
RGBrgb(95, 113, 225)
HSLhsl(232, 68%, 63%)
HSVhsv(232, 58%, 88%)
CMYKcmyk(57.8%, 49.8%, 0%, 11.8%)
CIE-LABlab(51.47, 26.13, -59.31)
CIE-LCHlch(51.47, 64.81, 293.78°)
OKLaboklab(59.16% 0.0096 -0.1696)
OKLCHoklch(59.16% 0.17 273.2)
XYZxyz(24.2106, 19.6776, 73.7419)
Luminance0.1968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F71E1 #E1CF5F
analogous
#5FB2E1 #5F71E1 #8E5FE1
triadic
#5F71E1 #E15F71 #71E15F
tetradic
#5F71E1 #E15FB2 #E1CF5F #5FE18E
square
#5F71E1 #E15FB2 #E1CF5F #5FE18E
split-complementary
#5F71E1 #E18E5F #B2E15F
monochromatic
#1F32A6 #2B43D7 #5F71E1 #939FEB #C6CCF4

Accessibility & contrast

On white

4.25
#5F71E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#5F71E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F71E1
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F71E1#FFFFFF#000000##000000
##5F71E11.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3680E5
Deuteranopia (green-blind)
#1D75DF
Tritanopia (blue-blind)
#008A9E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f71e1;
/* rgb */ color: rgb(95, 113, 225);
/* oklch */ color: oklch(59.2% 0.170 273.2);
Tailwind
colors: {
  custom: {
    50: '#9799eb',
    500: '#5f71e1',
    950: '#000000',
  },
}
SCSS
$custom: #5f71e1;
$custom-light: #9799eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f71e1",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 225
  },
  "hsl": {
    "h": 231.692,
    "s": 68.421,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59158,
    "c": 0.16987,
    "h": 273.2
  },
  "luminance": 0.19679
}

Semantic roles & 50–950 ramp

primary
#5F71E1
secondary
#E5DFB6
accent
#B615D0
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5F71E1

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

Preview Lab → · Contrast checker → · Palette generator →

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