#5F71DF#5F71DF

#5F71DF is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.0% C 0.167 H 273.2°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#5F71DF
RGBrgb(95, 113, 223)
HSLhsl(232, 67%, 62%)
HSVhsv(232, 57%, 87%)
CMYKcmyk(57.4%, 49.3%, 0%, 12.5%)
CIE-LABlab(51.35, 25.48, -58.38)
CIE-LCHlch(51.35, 63.70, 293.58°)
OKLaboklab(59.03% 0.0094 -0.1669)
OKLCHoklch(59.03% 0.167 273.2)
XYZxyz(23.9394, 19.5691, 72.3134)
Luminance0.1957 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F71DF #DFCD5F
analogous
#5FB1DF #5F71DF #8D5FDF
triadic
#5F71DF #DF5F71 #71DF5F
tetradic
#5F71DF #DF5FB1 #DFCD5F #5FDF8D
square
#5F71DF #DF5FB1 #DFCD5F #5FDF8D
split-complementary
#5F71DF #DF8D5F #B1DF5F
monochromatic
#2133A3 #2C44D5 #5F71DF #929EE9 #C5CCF3

Accessibility & contrast

On white

4.27
#5F71DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#5F71DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F71DF
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F71DF#FFFFFF#000000##000000
##5F71DF1.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3880E3
Deuteranopia (green-blind)
#2275DD
Tritanopia (blue-blind)
#008A9D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5f71df;
/* rgb */ color: rgb(95, 113, 223);
/* oklch */ color: oklch(59.0% 0.167 273.2);
Tailwind
colors: {
  custom: {
    50: '#9699ea',
    500: '#5f71df',
    950: '#000000',
  },
}
SCSS
$custom: #5f71df;
$custom-light: #9699ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5f71df",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 231.563,
    "s": 66.667,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59025,
    "c": 0.16713,
    "h": 273.2
  },
  "luminance": 0.19571
}

Semantic roles & 50–950 ramp

primary
#5F71DF
secondary
#E4DEB6
accent
#B517CF
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5F71DF

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

Preview Lab → · Contrast checker → · Palette generator →

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