#5F71F1#5F71F1

#5F71F1 is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.3% C 0.191 H 273.2°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5F71F1
RGBrgb(95, 113, 241)
HSLhsl(233, 84%, 66%)
HSVhsv(233, 61%, 95%)
CMYKcmyk(60.6%, 53.1%, 0%, 5.5%)
CIE-LABlab(52.50, 31.37, -66.61)
CIE-LCHlch(52.50, 73.63, 295.22°)
OKLaboklab(60.26% 0.0108 -0.1911)
OKLCHoklch(60.26% 0.191 273.2)
XYZxyz(26.4964, 20.5919, 85.7804)
Luminance0.2059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F71F1 #F1DF5F
analogous
#5FBAF1 #5F71F1 #965FF1
triadic
#5F71F1 #F15F71 #71F15F
tetradic
#5F71F1 #F15FBA #F1DF5F #5FF196
square
#5F71F1 #F15FBA #F1DF5F #5FF196
split-complementary
#5F71F1 #F1965F #BAF15F
monochromatic
#1127C4 #273FEC #5F71F1 #97A3F6 #D0D5FB

Accessibility & contrast

On white

4.10
#5F71F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#5F71F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F71F1
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F71F1#FFFFFF#000000##000000
##5F71F11.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f71f1;
/* rgb */ color: rgb(95, 113, 241);
/* oklch */ color: oklch(60.3% 0.191 273.2);
Tailwind
colors: {
  custom: {
    50: '#9999f6',
    500: '#5f71f1',
    950: '#000000',
  },
}
SCSS
$custom: #5f71f1;
$custom-light: #9999f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f71f1",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 241
  },
  "hsl": {
    "h": 232.603,
    "s": 83.908,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60262,
    "c": 0.19139,
    "h": 273.2
  },
  "luminance": 0.20594
}

Semantic roles & 50–950 ramp

primary
#5F71F1
secondary
#EEE8BE
accent
#C505E0
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F71F1

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

Preview Lab → · Contrast checker → · Palette generator →

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