#5A6FDB#5A6FDB

#5A6FDB is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.1% C 0.166 H 272.0°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#5A6FDB
RGBrgb(90, 111, 219)
HSLhsl(230, 64%, 61%)
HSVhsv(230, 59%, 86%)
CMYKcmyk(58.9%, 49.3%, 0%, 14.1%)
CIE-LABlab(50.28, 24.44, -57.85)
CIE-LCHlch(50.28, 62.80, 292.91°)
OKLaboklab(58.06% 0.0058 -0.1654)
OKLCHoklch(58.06% 0.166 272)
XYZxyz(22.6828, 18.6552, 69.4096)
Luminance0.1866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6FDB #DBC65A
analogous
#5AAFDB #5A6FDB #865ADB
triadic
#5A6FDB #DB5A6F #6FDB5A
tetradic
#5A6FDB #DB5AAF #DBC65A #5ADB86
square
#5A6FDB #DB5AAF #DBC65A #5ADB86
split-complementary
#5A6FDB #DB865A #AFDB5A
monochromatic
#213599 #2C46CB #5A6FDB #8C9BE6 #BEC7F1

Accessibility & contrast

On white

4.44
#5A6FDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#5A6FDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A6FDB
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6FDB#FFFFFF#000000##000000
##5A6FDB1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#377EDF
Deuteranopia (green-blind)
#1E72D9
Tritanopia (blue-blind)
#00889B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5a6fdb;
/* rgb */ color: rgb(90, 111, 219);
/* oklch */ color: oklch(58.1% 0.166 272.0);
Tailwind
colors: {
  custom: {
    50: '#9398e7',
    500: '#5a6fdb',
    950: '#000000',
  },
}
SCSS
$custom: #5a6fdb;
$custom-light: #9398e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6fdb",
  "rgb": {
    "r": 90,
    "g": 111,
    "b": 219
  },
  "hsl": {
    "h": 230.233,
    "s": 64.179,
    "l": 60.588
  },
  "oklch": {
    "l": 0.58059,
    "c": 0.16554,
    "h": 272
  },
  "luminance": 0.18657
}

Semantic roles & 50–950 ramp

primary
#5A6FDB
secondary
#E1D9B0
accent
#AF1ACC
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5A6FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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