#5F71F2#5F71F2

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

Color values

HEX#5F71F2
RGBrgb(95, 113, 242)
HSLhsl(233, 85%, 66%)
HSVhsv(233, 61%, 95%)
CMYKcmyk(60.7%, 53.3%, 0%, 5.1%)
CIE-LABlab(52.57, 31.70, -67.06)
CIE-LCHlch(52.57, 74.18, 295.30°)
OKLaboklab(60.33% 0.0108 -0.1924)
OKLCHoklch(60.33% 0.193 273.2)
XYZxyz(26.6462, 20.6518, 86.5692)
Luminance0.2065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F71F2 #F2E05F
analogous
#5FBAF2 #5F71F2 #965FF2
triadic
#5F71F2 #F25F71 #71F25F
tetradic
#5F71F2 #F25FBA #F2E05F #5FF296
square
#5F71F2 #F25FBA #F2E05F #5FF296
split-complementary
#5F71F2 #F2965F #BAF25F
monochromatic
#1026C6 #263FED #5F71F2 #98A3F7 #D0D5FB

Accessibility & contrast

On white

4.09
#5F71F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#5F71F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F71F2
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F71F2#FFFFFF#000000##000000
##5F71F21.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1884F6
Deuteranopia (green-blind)
#0077EF
Tritanopia (blue-blind)
#008FA7
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5f71f2;
/* rgb */ color: rgb(95, 113, 242);
/* oklch */ color: oklch(60.3% 0.193 273.2);
Tailwind
colors: {
  custom: {
    50: '#9999f7',
    500: '#5f71f2',
    950: '#000000',
  },
}
SCSS
$custom: #5f71f2;
$custom-light: #9999f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f71f2",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 242
  },
  "hsl": {
    "h": 232.653,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.60333,
    "c": 0.19271,
    "h": 273.2
  },
  "luminance": 0.20654
}

Semantic roles & 50–950 ramp

primary
#5F71F2
secondary
#EFE9BE
accent
#C604E1
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F71F2

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

Preview Lab → · Contrast checker → · Palette generator →

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