#5F72E5#5F72E5

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

Color values

HEX#5F72E5
RGBrgb(95, 114, 229)
HSLhsl(231, 72%, 64%)
HSVhsv(231, 59%, 90%)
CMYKcmyk(58.5%, 50.2%, 0%, 10.2%)
CIE-LABlab(51.98, 26.82, -60.74)
CIE-LCHlch(51.98, 66.40, 293.83°)
OKLaboklab(59.62% 0.0089 -0.1738)
OKLCHoklch(59.62% 0.174 272.9)
XYZxyz(24.8748, 20.1227, 76.6868)
Luminance0.2013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F72E5 #E5D25F
analogous
#5FB5E5 #5F72E5 #8F5FE5
triadic
#5F72E5 #E55F72 #72E55F
tetradic
#5F72E5 #E55FB5 #E5D25F #5FE58F
square
#5F72E5 #E55FB5 #E5D25F #5FE58F
split-complementary
#5F72E5 #E58F5F #B5E55F
monochromatic
#1C31AD #2A44DC #5F72E5 #94A0EE #C8CFF6

Accessibility & contrast

On white

4.18
#5F72E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#5F72E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F72E5
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F72E5#FFFFFF#000000##000000
##5F72E51.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3482E9
Deuteranopia (green-blind)
#1676E3
Tritanopia (blue-blind)
#008CA1
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5f72e5;
/* rgb */ color: rgb(95, 114, 229);
/* oklch */ color: oklch(59.6% 0.174 272.9);
Tailwind
colors: {
  custom: {
    50: '#979aee',
    500: '#5f72e5',
    950: '#000000',
  },
}
SCSS
$custom: #5f72e5;
$custom-light: #979aee;
$custom-dark: #000000;
JSON
{
  "hex": "#5f72e5",
  "rgb": {
    "r": 95,
    "g": 114,
    "b": 229
  },
  "hsl": {
    "h": 231.493,
    "s": 72.043,
    "l": 63.529
  },
  "oklch": {
    "l": 0.5962,
    "c": 0.17404,
    "h": 272.9
  },
  "luminance": 0.20125
}

Semantic roles & 50–950 ramp

primary
#5F72E5
secondary
#E8E1B8
accent
#B811D4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E16
muted
#7E7E84

Preview Lab

Preview with #5F72E5

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

Preview Lab → · Contrast checker → · Palette generator →

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