#5A5FDB#5A5FDB

#5A5FDB is a mid, vivid blue. Relative luminance 0.155; OKLCH L 55.1% C 0.186 H 276.7°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5A5FDB
RGBrgb(90, 95, 219)
HSLhsl(238, 64%, 61%)
HSVhsv(238, 59%, 86%)
CMYKcmyk(58.9%, 56.6%, 0%, 14.1%)
CIE-LABlab(46.27, 34.29, -64.32)
CIE-LCHlch(46.27, 72.89, 298.06°)
OKLaboklab(55.05% 0.0216 -0.1846)
OKLCHoklch(55.05% 0.186 276.7)
XYZxyz(21.0907, 15.4710, 68.8789)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FDB #DBD65A
analogous
#5AA0DB #5A5FDB #955ADB
triadic
#5A5FDB #DB5A5F #5FDB5A
tetradic
#5A5FDB #DB5AA0 #DBD65A #5ADB95
square
#5A5FDB #DB5AA0 #DBD65A #5ADB95
split-complementary
#5A5FDB #DB955A #A0DB5A
monochromatic
#212699 #2C33CB #5A5FDB #8C90E6 #BEC0F1

Accessibility & contrast

On white

5.13
#5A5FDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#5A5FDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FDB
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FDB#FFFFFF#000000##FFFFFF
##5A5FDB1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#0068D8
Tritanopia (blue-blind)
#007C94
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a5fdb;
/* rgb */ color: rgb(90, 95, 219);
/* oklch */ color: oklch(55.1% 0.186 276.7);
Tailwind
colors: {
  custom: {
    50: '#948ce7',
    500: '#5a5fdb',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fdb;
$custom-light: #948ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fdb",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 219
  },
  "hsl": {
    "h": 237.674,
    "s": 64.179,
    "l": 60.588
  },
  "oklch": {
    "l": 0.55051,
    "c": 0.18589,
    "h": 276.7
  },
  "luminance": 0.15473
}

Semantic roles & 50–950 ramp

primary
#5A5FDB
secondary
#E1DFB0
accent
#C51ACC
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5A5FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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