#5F71F0#5F71F0

#5F71F0 is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.2% C 0.190 H 273.2°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#5F71F0
RGBrgb(95, 113, 240)
HSLhsl(233, 83%, 66%)
HSVhsv(233, 60%, 94%)
CMYKcmyk(60.4%, 52.9%, 0%, 5.9%)
CIE-LABlab(52.43, 31.04, -66.16)
CIE-LCHlch(52.43, 73.08, 295.13°)
OKLaboklab(60.19% 0.0107 -0.1898)
OKLCHoklch(60.19% 0.19 273.2)
XYZxyz(26.3474, 20.5323, 84.9959)
Luminance0.2053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F71F0 #F0DE5F
analogous
#5FB9F0 #5F71F0 #955FF0
triadic
#5F71F0 #F05F71 #71F05F
tetradic
#5F71F0 #F05FB9 #F0DE5F #5FF095
square
#5F71F0 #F05FB9 #F0DE5F #5FF095
split-complementary
#5F71F0 #F0955F #B9F05F
monochromatic
#1228C2 #273FEB #5F71F0 #97A3F5 #CFD4FA

Accessibility & contrast

On white

4.11
#5F71F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#5F71F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F71F0
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F71F0#FFFFFF#000000##000000
##5F71F01.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E84F4
Deuteranopia (green-blind)
#0077ED
Tritanopia (blue-blind)
#008FA6
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5f71f0;
/* rgb */ color: rgb(95, 113, 240);
/* oklch */ color: oklch(60.2% 0.190 273.2);
Tailwind
colors: {
  custom: {
    50: '#9999f6',
    500: '#5f71f0',
    950: '#000000',
  },
}
SCSS
$custom: #5f71f0;
$custom-light: #9999f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f71f0",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 240
  },
  "hsl": {
    "h": 232.552,
    "s": 82.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.60192,
    "c": 0.19006,
    "h": 273.2
  },
  "luminance": 0.20534
}

Semantic roles & 50–950 ramp

primary
#5F71F0
secondary
#EEE8BD
accent
#C406DF
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F71F0

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

Preview Lab → · Contrast checker → · Palette generator →

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