#5A7CDB#5A7CDB

#5A7CDB is a mid, vivid blue. Relative luminance 0.217; OKLCH L 60.7% C 0.149 H 267.1°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5A7CDB
RGBrgb(90, 124, 219)
HSLhsl(224, 64%, 61%)
HSVhsv(224, 59%, 86%)
CMYKcmyk(58.9%, 43.4%, 0%, 14.1%)
CIE-LABlab(53.71, 16.46, -52.36)
CIE-LCHlch(53.71, 54.89, 287.45°)
OKLaboklab(60.67% -0.0076 -0.1492)
OKLCHoklch(60.67% 0.149 267.1)
XYZxyz(24.2060, 21.7014, 69.9173)
Luminance0.2170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7CDB #DBB95A
analogous
#5ABCDB #5A7CDB #785ADB
triadic
#5A7CDB #DB5A7C #7CDB5A
tetradic
#5A7CDB #DB5ABC #DBB95A #5ADB78
square
#5A7CDB #DB5ABC #DBB95A #5ADB78
split-complementary
#5A7CDB #DB785A #BCDB5A
monochromatic
#214199 #2C56CB #5A7CDB #8CA4E6 #BECCF1

Accessibility & contrast

On white

3.93
#5A7CDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#5A7CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7CDB
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7CDB#FFFFFF#000000##000000
##5A7CDB1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5187DF
Deuteranopia (green-blind)
#3F7BD9
Tritanopia (blue-blind)
#0091A1
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5a7cdb;
/* rgb */ color: rgb(90, 124, 219);
/* oklch */ color: oklch(60.7% 0.149 267.1);
Tailwind
colors: {
  custom: {
    50: '#93a1e7',
    500: '#5a7cdb',
    950: '#000000',
  },
}
SCSS
$custom: #5a7cdb;
$custom-light: #93a1e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7cdb",
  "rgb": {
    "r": 90,
    "g": 124,
    "b": 219
  },
  "hsl": {
    "h": 224.186,
    "s": 64.179,
    "l": 60.588
  },
  "oklch": {
    "l": 0.60673,
    "c": 0.14935,
    "h": 267.1
  },
  "luminance": 0.21703
}

Semantic roles & 50–950 ramp

primary
#5A7CDB
secondary
#E1D4B0
accent
#9D1ACC
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A7CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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