#5F72E4#5F72E4

#5F72E4 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.6% C 0.173 H 272.9°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5F72E4
RGBrgb(95, 114, 228)
HSLhsl(231, 71%, 63%)
HSVhsv(231, 58%, 89%)
CMYKcmyk(58.3%, 50%, 0%, 10.6%)
CIE-LABlab(51.91, 26.50, -60.28)
CIE-LCHlch(51.91, 65.85, 293.73°)
OKLaboklab(59.55% 0.0089 -0.1725)
OKLCHoklch(59.55% 0.173 272.9)
XYZxyz(24.7356, 20.0671, 75.9536)
Luminance0.2007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F72E4 #E4D15F
analogous
#5FB4E4 #5F72E4 #8E5FE4
triadic
#5F72E4 #E45F72 #72E45F
tetradic
#5F72E4 #E45FB4 #E4D15F #5FE48E
square
#5F72E4 #E45FB4 #E4D15F #5FE48E
split-complementary
#5F72E4 #E48E5F #B4E45F
monochromatic
#1D31AC #2B44DB #5F72E4 #93A0ED #C8CEF6

Accessibility & contrast

On white

4.19
#5F72E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#5F72E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F72E4
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F72E4#FFFFFF#000000##000000
##5F72E41.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3582E8
Deuteranopia (green-blind)
#1976E2
Tritanopia (blue-blind)
#008CA0
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5f72e4;
/* rgb */ color: rgb(95, 114, 228);
/* oklch */ color: oklch(59.6% 0.173 272.9);
Tailwind
colors: {
  custom: {
    50: '#979aed',
    500: '#5f72e4',
    950: '#000000',
  },
}
SCSS
$custom: #5f72e4;
$custom-light: #979aed;
$custom-dark: #000000;
JSON
{
  "hex": "#5f72e4",
  "rgb": {
    "r": 95,
    "g": 114,
    "b": 228
  },
  "hsl": {
    "h": 231.429,
    "s": 71.123,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59553,
    "c": 0.17269,
    "h": 272.9
  },
  "luminance": 0.20069
}

Semantic roles & 50–950 ramp

primary
#5F72E4
secondary
#E7E0B8
accent
#B812D3
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E16
muted
#7E7E84

Preview Lab

Preview with #5F72E4

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

Preview Lab → · Contrast checker → · Palette generator →

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