#5F72E7#5F72E7

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

Color values

HEX#5F72E7
RGBrgb(95, 114, 231)
HSLhsl(232, 74%, 64%)
HSVhsv(232, 59%, 91%)
CMYKcmyk(58.9%, 50.6%, 0%, 9.4%)
CIE-LABlab(52.10, 27.48, -61.66)
CIE-LCHlch(52.10, 67.51, 294.02°)
OKLaboklab(59.76% 0.0091 -0.1765)
OKLCHoklch(59.76% 0.177 273)
XYZxyz(25.1557, 20.2351, 78.1659)
Luminance0.2024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F72E7 #E7D45F
analogous
#5FB6E7 #5F72E7 #905FE7
triadic
#5F72E7 #E75F72 #72E75F
tetradic
#5F72E7 #E75FB6 #E7D45F #5FE790
square
#5F72E7 #E75FB6 #E7D45F #5FE790
split-complementary
#5F72E7 #E7905F #B6E75F
monochromatic
#1B30B1 #2A43DF #5F72E7 #94A1EF #C9D0F7

Accessibility & contrast

On white

4.16
#5F72E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#5F72E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F72E7
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F72E7#FFFFFF#000000##000000
##5F72E71.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3182EB
Deuteranopia (green-blind)
#0F77E5
Tritanopia (blue-blind)
#008DA2
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5f72e7;
/* rgb */ color: rgb(95, 114, 231);
/* oklch */ color: oklch(59.8% 0.177 273.0);
Tailwind
colors: {
  custom: {
    50: '#989aef',
    500: '#5f72e7',
    950: '#000000',
  },
}
SCSS
$custom: #5f72e7;
$custom-light: #989aef;
$custom-dark: #000000;
JSON
{
  "hex": "#5f72e7",
  "rgb": {
    "r": 95,
    "g": 114,
    "b": 231
  },
  "hsl": {
    "h": 231.618,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.59756,
    "c": 0.17675,
    "h": 273
  },
  "luminance": 0.20237
}

Semantic roles & 50–950 ramp

primary
#5F72E7
secondary
#E9E2B9
accent
#BA0FD6
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E16
muted
#7E7E84

Preview Lab

Preview with #5F72E7

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

Preview Lab → · Contrast checker → · Palette generator →

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