#5F72E6#5F72E6

#5F72E6 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.7% C 0.175 H 273.0°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#5F72E6
RGBrgb(95, 114, 230)
HSLhsl(232, 73%, 64%)
HSVhsv(232, 59%, 90%)
CMYKcmyk(58.7%, 50.4%, 0%, 9.8%)
CIE-LABlab(52.04, 27.15, -61.20)
CIE-LCHlch(52.04, 66.96, 293.92°)
OKLaboklab(59.69% 0.009 -0.1752)
OKLCHoklch(59.69% 0.175 273)
XYZxyz(25.0149, 20.1787, 77.4243)
Luminance0.2018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F72E6 #E6D35F
analogous
#5FB5E6 #5F72E6 #8F5FE6
triadic
#5F72E6 #E65F72 #72E65F
tetradic
#5F72E6 #E65FB5 #E6D35F #5FE68F
square
#5F72E6 #E65FB5 #E6D35F #5FE68F
split-complementary
#5F72E6 #E68F5F #B5E65F
monochromatic
#1B30AF #2A43DE #5F72E6 #94A1EE #C9CFF7

Accessibility & contrast

On white

4.17
#5F72E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#5F72E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F72E6
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F72E6#FFFFFF#000000##000000
##5F72E61.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3282EA
Deuteranopia (green-blind)
#1376E4
Tritanopia (blue-blind)
#008DA1
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5f72e6;
/* rgb */ color: rgb(95, 114, 230);
/* oklch */ color: oklch(59.7% 0.175 273.0);
Tailwind
colors: {
  custom: {
    50: '#979aef',
    500: '#5f72e6',
    950: '#000000',
  },
}
SCSS
$custom: #5f72e6;
$custom-light: #979aef;
$custom-dark: #000000;
JSON
{
  "hex": "#5f72e6",
  "rgb": {
    "r": 95,
    "g": 114,
    "b": 230
  },
  "hsl": {
    "h": 231.556,
    "s": 72.973,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59688,
    "c": 0.17539,
    "h": 273
  },
  "luminance": 0.20181
}

Semantic roles & 50–950 ramp

primary
#5F72E6
secondary
#E8E2B9
accent
#B910D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E16
muted
#7E7E84

Preview Lab

Preview with #5F72E6

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

Preview Lab → · Contrast checker → · Palette generator →

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