#5F71F4#5F71F4

#5F71F4 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.5% C 0.195 H 273.2°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5F71F4
RGBrgb(95, 113, 244)
HSLhsl(233, 87%, 66%)
HSVhsv(233, 61%, 96%)
CMYKcmyk(61.1%, 53.7%, 0%, 4.3%)
CIE-LABlab(52.70, 32.35, -67.96)
CIE-LCHlch(52.70, 75.27, 295.46°)
OKLaboklab(60.48% 0.0109 -0.1951)
OKLCHoklch(60.48% 0.195 273.2)
XYZxyz(26.9482, 20.7726, 88.1598)
Luminance0.2077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F71F4 #F4E25F
analogous
#5FBCF4 #5F71F4 #985FF4
triadic
#5F71F4 #F45F71 #71F45F
tetradic
#5F71F4 #F45FBC #F4E25F #5FF498
square
#5F71F4 #F45FBC #F4E25F #5FF498
split-complementary
#5F71F4 #F4985F #BCF45F
monochromatic
#0E25CB #263EF0 #5F71F4 #98A4F8 #D2D7FC

Accessibility & contrast

On white

4.07
#5F71F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#5F71F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F71F4
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F71F4#FFFFFF#000000##000000
##5F71F41.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1285F9
Deuteranopia (green-blind)
#0077F1
Tritanopia (blue-blind)
#0090A8
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f71f4;
/* rgb */ color: rgb(95, 113, 244);
/* oklch */ color: oklch(60.5% 0.195 273.2);
Tailwind
colors: {
  custom: {
    50: '#9a99f9',
    500: '#5f71f4',
    950: '#000000',
  },
}
SCSS
$custom: #5f71f4;
$custom-light: #9a99f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f71f4",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 244
  },
  "hsl": {
    "h": 232.752,
    "s": 87.135,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60476,
    "c": 0.19537,
    "h": 273.2
  },
  "luminance": 0.20775
}

Semantic roles & 50–950 ramp

primary
#5F71F4
secondary
#F0EABF
accent
#C802E4
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F71F4

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

Preview Lab → · Contrast checker → · Palette generator →

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