#5A7DC9#5A7DC9

#5A7DC9 is a mid, vivid blue. Relative luminance 0.211; OKLCH L 59.8% C 0.123 H 264.3°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#5A7DC9
RGBrgb(90, 125, 201)
HSLhsl(221, 51%, 57%)
HSVhsv(221, 55%, 79%)
CMYKcmyk(55.2%, 37.8%, 0%, 21.2%)
CIE-LABlab(53.01, 9.95, -43.28)
CIE-LCHlch(53.01, 44.41, 282.95°)
OKLaboklab(59.82% -0.0122 -0.1225)
OKLCHoklch(59.82% 0.123 264.3)
XYZxyz(22.0891, 21.0562, 58.1473)
Luminance0.2106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7DC9 #C9A65A
analogous
#5AB5C9 #5A7DC9 #6F5AC9
triadic
#5A7DC9 #C95A7D #7DC95A
tetradic
#5A7DC9 #C95AB5 #C9A65A #5AC96F
square
#5A7DC9 #C95AB5 #C9A65A #5AC96F
split-complementary
#5A7DC9 #C96F5A #B5C95A
monochromatic
#2A457F #395DAD #5A7DC9 #88A1D8 #B6C6E7

Accessibility & contrast

On white

4.03
#5A7DC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#5A7DC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7DC9
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7DC9#FFFFFF#000000##000000
##5A7DC91.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E84CC
Deuteranopia (green-blind)
#507AC7
Tritanopia (blue-blind)
#168E99
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5a7dc9;
/* rgb */ color: rgb(90, 125, 201);
/* oklch */ color: oklch(59.8% 0.123 264.3);
Tailwind
colors: {
  custom: {
    50: '#90a2da',
    500: '#5a7dc9',
    950: '#000000',
  },
}
SCSS
$custom: #5a7dc9;
$custom-light: #90a2da;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7dc9",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 201
  },
  "hsl": {
    "h": 221.081,
    "s": 50.685,
    "l": 57.059
  },
  "oklch": {
    "l": 0.59819,
    "c": 0.12316,
    "h": 264.3
  },
  "luminance": 0.21058
}

Semantic roles & 50–950 ramp

primary
#5A7DC9
secondary
#D6C8A9
accent
#AE4EDA
background
#F9F9FD
surface
#F2F2FA
border
#CCCCD3
text
#0D0F15
muted
#7E7E83

Preview Lab

Preview with #5A7DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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