#5F71E7#5F71E7

#5F71E7 is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.6% C 0.178 H 273.3°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5F71E7
RGBrgb(95, 113, 231)
HSLhsl(232, 74%, 64%)
HSVhsv(232, 59%, 91%)
CMYKcmyk(58.9%, 51.1%, 0%, 9.4%)
CIE-LABlab(51.85, 28.09, -62.07)
CIE-LCHlch(51.85, 68.13, 294.35°)
OKLaboklab(59.57% 0.0101 -0.1777)
OKLCHoklch(59.57% 0.178 273.3)
XYZxyz(25.0435, 20.0107, 78.1286)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F71E7 #E7D55F
analogous
#5FB5E7 #5F71E7 #915FE7
triadic
#5F71E7 #E75F71 #71E75F
tetradic
#5F71E7 #E75FB5 #E7D55F #5FE791
square
#5F71E7 #E75FB5 #E7D55F #5FE791
split-complementary
#5F71E7 #E7915F #B5E75F
monochromatic
#1B2EB1 #2A42DF #5F71E7 #94A0EF #C9CFF7

Accessibility & contrast

On white

4.20
#5F71E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#5F71E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F71E7
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F71E7#FFFFFF#000000##000000
##5F71E71.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E82EB
Deuteranopia (green-blind)
#0776E5
Tritanopia (blue-blind)
#008CA1
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5f71e7;
/* rgb */ color: rgb(95, 113, 231);
/* oklch */ color: oklch(59.6% 0.178 273.3);
Tailwind
colors: {
  custom: {
    50: '#9899ef',
    500: '#5f71e7',
    950: '#000000',
  },
}
SCSS
$custom: #5f71e7;
$custom-light: #9899ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5f71e7",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 231
  },
  "hsl": {
    "h": 232.059,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.59566,
    "c": 0.17801,
    "h": 273.3
  },
  "luminance": 0.20013
}

Semantic roles & 50–950 ramp

primary
#5F71E7
secondary
#E9E2B9
accent
#BC0FD6
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0D17
muted
#7E7E85

Preview Lab

Preview with #5F71E7

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

Preview Lab → · Contrast checker → · Palette generator →

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