#5F71DB#5F71DB

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

Color values

HEX#5F71DB
RGBrgb(95, 113, 219)
HSLhsl(231, 63%, 62%)
HSVhsv(231, 57%, 86%)
CMYKcmyk(56.6%, 48.4%, 0%, 14.1%)
CIE-LABlab(51.10, 24.17, -56.52)
CIE-LCHlch(51.10, 61.47, 293.16°)
OKLaboklab(58.76% 0.009 -0.1614)
OKLCHoklch(58.76% 0.162 273.2)
XYZxyz(23.4064, 19.3559, 69.5067)
Luminance0.1936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F71DB #DBC95F
analogous
#5FAFDB #5F71DB #8B5FDB
triadic
#5F71DB #DB5F71 #71DB5F
tetradic
#5F71DB #DB5FAF #DBC95F #5FDB8B
square
#5F71DB #DB5FAF #DBC95F #5FDB8B
split-complementary
#5F71DB #DB8B5F #AFDB5F
monochromatic
#23359C #2E46CE #5F71DB #919DE6 #C3CAF1

Accessibility & contrast

On white

4.31
#5F71DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#5F71DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F71DB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F71DB#FFFFFF#000000##000000
##5F71DB1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D7FDF
Deuteranopia (green-blind)
#2A75D9
Tritanopia (blue-blind)
#0E899B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5f71db;
/* rgb */ color: rgb(95, 113, 219);
/* oklch */ color: oklch(58.8% 0.162 273.2);
Tailwind
colors: {
  custom: {
    50: '#9699e7',
    500: '#5f71db',
    950: '#000000',
  },
}
SCSS
$custom: #5f71db;
$custom-light: #9699e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f71db",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 231.29,
    "s": 63.265,
    "l": 61.569
  },
  "oklch": {
    "l": 0.5876,
    "c": 0.16164,
    "h": 273.2
  },
  "luminance": 0.19358
}

Semantic roles & 50–950 ramp

primary
#5F71DB
secondary
#E2DBB4
accent
#B11ACB
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5F71DB

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

Preview Lab → · Contrast checker → · Palette generator →

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