#5A5BD4#5A5BD4

#5A5BD4 is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.8% C 0.182 H 278.0°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#5A5BD4
RGBrgb(90, 91, 212)
HSLhsl(240, 59%, 59%)
HSVhsv(240, 58%, 83%)
CMYKcmyk(57.5%, 57.1%, 0%, 16.9%)
CIE-LABlab(44.81, 34.46, -62.69)
CIE-LCHlch(44.81, 71.54, 298.80°)
OKLaboklab(53.81% 0.0254 -0.1799)
OKLCHoklch(53.81% 0.182 278)
XYZxyz(19.8374, 14.4079, 64.0102)
Luminance0.1441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BD4 #D4D35A
analogous
#5A98D4 #5A5BD4 #965AD4
triadic
#5A5BD4 #D45A5B #5BD45A
tetradic
#5A5BD4 #D45A98 #D4D35A #5AD496
square
#5A5BD4 #D45A98 #D4D35A #5AD496
split-complementary
#5A5BD4 #D4965A #98D45A
monochromatic
#25268E #3233BF #5A5BD4 #8B8BE1 #BBBCED

Accessibility & contrast

On white

5.41
#5A5BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#5A5BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BD4
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BD4#FFFFFF#000000##FFFFFF
##5A5BD41.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD8
Deuteranopia (green-blind)
#0065D2
Tritanopia (blue-blind)
#09788F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a5bd4;
/* rgb */ color: rgb(90, 91, 212);
/* oklch */ color: oklch(53.8% 0.182 278.0);
Tailwind
colors: {
  custom: {
    50: '#9389e2',
    500: '#5a5bd4',
    950: '#000000',
  },
}
SCSS
$custom: #5a5bd4;
$custom-light: #9389e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5bd4",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 212
  },
  "hsl": {
    "h": 239.508,
    "s": 58.654,
    "l": 59.216
  },
  "oklch": {
    "l": 0.5381,
    "c": 0.18167,
    "h": 278
  },
  "luminance": 0.14409
}

Semantic roles & 50–950 ramp

primary
#5A5BD4
secondary
#DDDCAD
accent
#E146E2
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A5BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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