#5A7BDB#5A7BDB

#5A7BDB is a mid, vivid blue. Relative luminance 0.215; OKLCH L 60.5% C 0.151 H 267.5°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#5A7BDB
RGBrgb(90, 123, 219)
HSLhsl(225, 64%, 61%)
HSVhsv(225, 59%, 86%)
CMYKcmyk(58.9%, 43.8%, 0%, 14.1%)
CIE-LABlab(53.44, 17.07, -52.79)
CIE-LCHlch(53.44, 55.48, 287.92°)
OKLaboklab(60.47% -0.0065 -0.1504)
OKLCHoklch(60.47% 0.151 267.5)
XYZxyz(24.0813, 21.4521, 69.8757)
Luminance0.2145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7BDB #DBBA5A
analogous
#5ABBDB #5A7BDB #795ADB
triadic
#5A7BDB #DB5A7B #7BDB5A
tetradic
#5A7BDB #DB5ABB #DBBA5A #5ADB79
square
#5A7BDB #DB5ABB #DBBA5A #5ADB79
split-complementary
#5A7BDB #DB795A #BBDB5A
monochromatic
#214099 #2C55CB #5A7BDB #8CA3E6 #BECBF1

Accessibility & contrast

On white

3.97
#5A7BDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#5A7BDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7BDB
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7BDB#FFFFFF#000000##000000
##5A7BDB1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F86DF
Deuteranopia (green-blind)
#3D7AD9
Tritanopia (blue-blind)
#0090A0
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5a7bdb;
/* rgb */ color: rgb(90, 123, 219);
/* oklch */ color: oklch(60.5% 0.151 267.5);
Tailwind
colors: {
  custom: {
    50: '#93a0e7',
    500: '#5a7bdb',
    950: '#000000',
  },
}
SCSS
$custom: #5a7bdb;
$custom-light: #93a0e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7bdb",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 219
  },
  "hsl": {
    "h": 224.651,
    "s": 64.179,
    "l": 60.588
  },
  "oklch": {
    "l": 0.60467,
    "c": 0.15056,
    "h": 267.5
  },
  "luminance": 0.21454
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A7BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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