#5A5FCB#5A5FCB

#5A5FCB is a mid, vivid blue. Relative luminance 0.147; OKLCH L 53.9% C 0.164 H 277.4°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5A5FCB
RGBrgb(90, 95, 203)
HSLhsl(237, 52%, 57%)
HSVhsv(237, 56%, 80%)
CMYKcmyk(55.7%, 53.2%, 0%, 20.4%)
CIE-LABlab(45.18, 29.09, -56.94)
CIE-LCHlch(45.18, 63.94, 297.06°)
OKLaboklab(53.89% 0.0211 -0.1629)
OKLCHoklch(53.89% 0.164 277.4)
XYZxyz(19.0847, 14.6686, 58.3140)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FCB #CBC65A
analogous
#5A98CB #5A5FCB #8D5ACB
triadic
#5A5FCB #CB5A5F #5FCB5A
tetradic
#5A5FCB #CB5A98 #CBC65A #5ACB8D
square
#5A5FCB #CB5A98 #CBC65A #5ACB8D
split-complementary
#5A5FCB #CB8D5A #98CB5A
monochromatic
#292D82 #383DB0 #5A5FCB #898CDA #B7B9E8

Accessibility & contrast

On white

5.34
#5A5FCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5A5FCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FCB
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FCB#FFFFFF#000000##FFFFFF
##5A5FCB1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F70CF
Deuteranopia (green-blind)
#0066C9
Tritanopia (blue-blind)
#1E788C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a5fcb;
/* rgb */ color: rgb(90, 95, 203);
/* oklch */ color: oklch(53.9% 0.164 277.4);
Tailwind
colors: {
  custom: {
    50: '#928cdb',
    500: '#5a5fcb',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fcb;
$custom-light: #928cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fcb",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 203
  },
  "hsl": {
    "h": 237.345,
    "s": 52.074,
    "l": 57.451
  },
  "oklch": {
    "l": 0.53885,
    "c": 0.16428,
    "h": 277.4
  },
  "luminance": 0.1467
}

Semantic roles & 50–950 ramp

primary
#5A5FCB
secondary
#D7D5AA
accent
#D54CDC
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5A5FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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