#5F71DC#5F71DC

#5F71DC is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.8% C 0.163 H 273.2°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#5F71DC
RGBrgb(95, 113, 220)
HSLhsl(231, 64%, 62%)
HSVhsv(231, 57%, 86%)
CMYKcmyk(56.8%, 48.6%, 0%, 13.7%)
CIE-LABlab(51.16, 24.50, -56.98)
CIE-LCHlch(51.16, 62.03, 293.26°)
OKLaboklab(58.83% 0.0091 -0.1628)
OKLCHoklch(58.83% 0.163 273.2)
XYZxyz(23.5385, 19.4087, 70.2021)
Luminance0.1941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F71DC #DCCA5F
analogous
#5FB0DC #5F71DC #8C5FDC
triadic
#5F71DC #DC5F71 #71DC5F
tetradic
#5F71DC #DC5FB0 #DCCA5F #5FDC8C
square
#5F71DC #DC5FB0 #DCCA5F #5FDC8C
split-complementary
#5F71DC #DC8C5F #B0DC5F
monochromatic
#23349E #2E45D0 #5F71DC #919EE7 #C3CAF2

Accessibility & contrast

On white

4.30
#5F71DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#5F71DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F71DC
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F71DC#FFFFFF#000000##000000
##5F71DC1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C7FE0
Deuteranopia (green-blind)
#2875DA
Tritanopia (blue-blind)
#0A899C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5f71dc;
/* rgb */ color: rgb(95, 113, 220);
/* oklch */ color: oklch(58.8% 0.163 273.2);
Tailwind
colors: {
  custom: {
    50: '#9699e7',
    500: '#5f71dc',
    950: '#000000',
  },
}
SCSS
$custom: #5f71dc;
$custom-light: #9699e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f71dc",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 231.36,
    "s": 64.103,
    "l": 61.765
  },
  "oklch": {
    "l": 0.58826,
    "c": 0.16301,
    "h": 273.2
  },
  "luminance": 0.1941
}

Semantic roles & 50–950 ramp

primary
#5F71DC
secondary
#E3DCB4
accent
#B21ACC
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5F71DC

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

Preview Lab → · Contrast checker → · Palette generator →

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