#5F71E8#5F71E8

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

Color values

HEX#5F71E8
RGBrgb(95, 113, 232)
HSLhsl(232, 75%, 64%)
HSVhsv(232, 59%, 91%)
CMYKcmyk(59.1%, 51.3%, 0%, 9%)
CIE-LABlab(51.91, 28.42, -62.53)
CIE-LCHlch(51.91, 68.68, 294.44°)
OKLaboklab(59.63% 0.0102 -0.1791)
OKLCHoklch(59.63% 0.179 273.3)
XYZxyz(25.1851, 20.0674, 78.8745)
Luminance0.2007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F71E8 #E8D65F
analogous
#5FB6E8 #5F71E8 #925FE8
triadic
#5F71E8 #E85F71 #71E85F
tetradic
#5F71E8 #E85FB6 #E8D65F #5FE892
square
#5F71E8 #E85FB6 #E8D65F #5FE892
split-complementary
#5F71E8 #E8925F #B6E85F
monochromatic
#1A2EB3 #2942E0 #5F71E8 #95A0F0 #CAD0F7

Accessibility & contrast

On white

4.19
#5F71E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#5F71E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F71E8
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F71E8#FFFFFF#000000##000000
##5F71E81.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D82EC
Deuteranopia (green-blind)
#0176E6
Tritanopia (blue-blind)
#008CA2
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5f71e8;
/* rgb */ color: rgb(95, 113, 232);
/* oklch */ color: oklch(59.6% 0.179 273.3);
Tailwind
colors: {
  custom: {
    50: '#9899f0',
    500: '#5f71e8',
    950: '#000000',
  },
}
SCSS
$custom: #5f71e8;
$custom-light: #9899f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f71e8",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 232
  },
  "hsl": {
    "h": 232.117,
    "s": 74.863,
    "l": 64.118
  },
  "oklch": {
    "l": 0.59634,
    "c": 0.17936,
    "h": 273.3
  },
  "luminance": 0.20069
}

Semantic roles & 50–950 ramp

primary
#5F71E8
secondary
#E9E3BA
accent
#BD0ED7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0D17
muted
#7E7E85

Preview Lab

Preview with #5F71E8

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

Preview Lab → · Contrast checker → · Palette generator →

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