#5A7DDC#5A7DDC

#5A7DDC is a mid, vivid blue. Relative luminance 0.220; OKLCH L 60.9% C 0.150 H 266.8°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#5A7DDC
RGBrgb(90, 125, 220)
HSLhsl(224, 65%, 61%)
HSVhsv(224, 59%, 86%)
CMYKcmyk(59.1%, 43.2%, 0%, 13.7%)
CIE-LABlab(54.03, 16.18, -52.40)
CIE-LCHlch(54.03, 54.84, 287.16°)
OKLaboklab(60.94% -0.0084 -0.1493)
OKLCHoklch(60.94% 0.15 266.8)
XYZxyz(24.4639, 22.0062, 70.6547)
Luminance0.2201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7DDC #DCB95A
analogous
#5ABEDC #5A7DDC #785ADC
triadic
#5A7DDC #DC5A7D #7DDC5A
tetradic
#5A7DDC #DC5ABE #DCB95A #5ADC78
square
#5A7DDC #DC5ABE #DCB95A #5ADC78
split-complementary
#5A7DDC #DC785A #BEDC5A
monochromatic
#21429B #2C57CD #5A7DDC #8CA5E7 #BFCDF1

Accessibility & contrast

On white

3.89
#5A7DDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#5A7DDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7DDC
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7DDC#FFFFFF#000000##000000
##5A7DDC1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5287E0
Deuteranopia (green-blind)
#407CDA
Tritanopia (blue-blind)
#0092A2
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5a7ddc;
/* rgb */ color: rgb(90, 125, 220);
/* oklch */ color: oklch(60.9% 0.150 266.8);
Tailwind
colors: {
  custom: {
    50: '#93a2e7',
    500: '#5a7ddc',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ddc;
$custom-light: #93a2e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ddc",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 220
  },
  "hsl": {
    "h": 223.846,
    "s": 65,
    "l": 60.784
  },
  "oklch": {
    "l": 0.6094,
    "c": 0.14952,
    "h": 266.8
  },
  "luminance": 0.22008
}

Semantic roles & 50–950 ramp

primary
#5A7DDC
secondary
#E2D4B0
accent
#9C19CD
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0F16
muted
#7E7E84

Preview Lab

Preview with #5A7DDC

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

Preview Lab → · Contrast checker → · Palette generator →

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