#5A5BDB#5A5BDB

#5A5BDB is a mid, vivid blue. Relative luminance 0.148; OKLCH L 54.3% C 0.191 H 277.6°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5A5BDB
RGBrgb(90, 91, 219)
HSLhsl(240, 64%, 61%)
HSVhsv(240, 59%, 86%)
CMYKcmyk(58.9%, 58.4%, 0%, 14.1%)
CIE-LABlab(45.32, 36.72, -65.87)
CIE-LCHlch(45.32, 75.42, 299.14°)
OKLaboklab(54.34% 0.0253 -0.1892)
OKLCHoklch(54.34% 0.191 277.6)
XYZxyz(20.7396, 14.7688, 68.7619)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BDB #DBDA5A
analogous
#5A9BDB #5A5BDB #995ADB
triadic
#5A5BDB #DB5A5B #5BDB5A
tetradic
#5A5BDB #DB5A9B #DBDA5A #5ADB99
square
#5A5BDB #DB5A9B #DBDA5A #5ADB99
split-complementary
#5A5BDB #DB995A #9BDB5A
monochromatic
#212299 #2C2ECB #5A5BDB #8C8DE6 #BEBFF1

Accessibility & contrast

On white

5.31
#5A5BDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#5A5BDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BDB
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BDB#FFFFFF#000000##FFFFFF
##5A5BDB1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#0066D8
Tritanopia (blue-blind)
#007A92
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a5bdb;
/* rgb */ color: rgb(90, 91, 219);
/* oklch */ color: oklch(54.3% 0.191 277.6);
Tailwind
colors: {
  custom: {
    50: '#9489e7',
    500: '#5a5bdb',
    950: '#000000',
  },
}
SCSS
$custom: #5a5bdb;
$custom-light: #9489e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5bdb",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 219
  },
  "hsl": {
    "h": 239.535,
    "s": 64.179,
    "l": 60.588
  },
  "oklch": {
    "l": 0.54342,
    "c": 0.19093,
    "h": 277.6
  },
  "luminance": 0.1477
}

Semantic roles & 50–950 ramp

primary
#5A5BDB
secondary
#E1E1B0
accent
#CB1ACC
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5A5BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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