#5A72CF#5A72CF

#5A72CF is a mid, vivid blue. Relative luminance 0.187; OKLCH L 57.9% C 0.145 H 270.4°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5A72CF
RGBrgb(90, 114, 207)
HSLhsl(228, 55%, 58%)
HSVhsv(228, 57%, 81%)
CMYKcmyk(56.5%, 44.9%, 0%, 18.8%)
CIE-LABlab(50.35, 18.63, -50.93)
CIE-LCHlch(50.35, 54.23, 290.10°)
OKLaboklab(57.88% 0.0011 -0.1451)
OKLCHoklch(57.88% 0.145 270.4)
XYZxyz(21.4925, 18.7117, 61.4985)
Luminance0.1871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A72CF #CFB75A
analogous
#5AADCF #5A72CF #7C5ACF
triadic
#5A72CF #CF5A72 #72CF5A
tetradic
#5A72CF #CF5AAD #CFB75A #5ACF7C
square
#5A72CF #CF5AAD #CFB75A #5ACF7C
split-complementary
#5A72CF #CF7C5A #ADCF5A
monochromatic
#273B87 #3550B7 #5A72CF #899BDD #B9C3EB

Accessibility & contrast

On white

4.43
#5A72CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#5A72CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A72CF
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A72CF#FFFFFF#000000##000000
##5A72CF1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#487DD2
Deuteranopia (green-blind)
#3873CD
Tritanopia (blue-blind)
#0D8796
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5a72cf;
/* rgb */ color: rgb(90, 114, 207);
/* oklch */ color: oklch(57.9% 0.145 270.4);
Tailwind
colors: {
  custom: {
    50: '#919ade',
    500: '#5a72cf',
    950: '#000000',
  },
}
SCSS
$custom: #5a72cf;
$custom-light: #919ade;
$custom-dark: #000000;
JSON
{
  "hex": "#5a72cf",
  "rgb": {
    "r": 90,
    "g": 114,
    "b": 207
  },
  "hsl": {
    "h": 227.692,
    "s": 54.93,
    "l": 58.235
  },
  "oklch": {
    "l": 0.57878,
    "c": 0.14507,
    "h": 270.4
  },
  "luminance": 0.18713
}

Semantic roles & 50–950 ramp

primary
#5A72CF
secondary
#DAD0AB
accent
#C04ADE
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0E15
muted
#7E7E83

Preview Lab

Preview with #5A72CF

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

Preview Lab → · Contrast checker → · Palette generator →

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