#5A5FCD#5A5FCD

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

Color values

HEX#5A5FCD
RGBrgb(90, 95, 205)
HSLhsl(237, 53%, 58%)
HSVhsv(237, 56%, 80%)
CMYKcmyk(56.1%, 53.7%, 0%, 19.6%)
CIE-LABlab(45.31, 29.74, -57.88)
CIE-LCHlch(45.31, 65.07, 297.20°)
OKLaboklab(54.03% 0.0212 -0.1657)
OKLCHoklch(54.03% 0.167 277.3)
XYZxyz(19.3246, 14.7645, 59.5773)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FCD #CDC85A
analogous
#5A99CD #5A5FCD #8E5ACD
triadic
#5A5FCD #CD5A5F #5FCD5A
tetradic
#5A5FCD #CD5A99 #CDC85A #5ACD8E
square
#5A5FCD #CD5A99 #CDC85A #5ACD8E
split-complementary
#5A5FCD #CD8E5A #99CD5A
monochromatic
#282C84 #363CB3 #5A5FCD #898DDB #B8BAE9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A5FCD#FFFFFF#000000##FFFFFF
##5A5FCD1.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)
#1B70D1
Deuteranopia (green-blind)
#0067CB
Tritanopia (blue-blind)
#1A788D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a5fcd;
/* rgb */ color: rgb(90, 95, 205);
/* oklch */ color: oklch(54.0% 0.167 277.3);
Tailwind
colors: {
  custom: {
    50: '#928cdd',
    500: '#5a5fcd',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fcd;
$custom-light: #928cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fcd",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 205
  },
  "hsl": {
    "h": 237.391,
    "s": 53.488,
    "l": 57.843
  },
  "oklch": {
    "l": 0.54027,
    "c": 0.16702,
    "h": 277.3
  },
  "luminance": 0.14766
}

Semantic roles & 50–950 ramp

primary
#5A5FCD
secondary
#D8D6AA
accent
#D74BDD
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5A5FCD

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

Preview Lab → · Contrast checker → · Palette generator →

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