#5A5FDD#5A5FDD

#5A5FDD is a mid, vivid blue. Relative luminance 0.156; OKLCH L 55.2% C 0.189 H 276.6°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5A5FDD
RGBrgb(90, 95, 221)
HSLhsl(238, 66%, 61%)
HSVhsv(238, 59%, 87%)
CMYKcmyk(59.3%, 57%, 0%, 13.3%)
CIE-LABlab(46.41, 34.94, -65.23)
CIE-LCHlch(46.41, 74.00, 298.18°)
OKLaboklab(55.2% 0.0216 -0.1873)
OKLCHoklch(55.2% 0.189 276.6)
XYZxyz(21.3556, 15.5769, 70.2739)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FDD #DDD85A
analogous
#5AA0DD #5A5FDD #965ADD
triadic
#5A5FDD #DD5A5F #5FDD5A
tetradic
#5A5FDD #DD5AA0 #DDD85A #5ADD96
square
#5A5FDD #DD5AA0 #DDD85A #5ADD96
split-complementary
#5A5FDD #DD965A #A0DD5A
monochromatic
#20259C #2B31CF #5A5FDD #8D90E7 #BFC1F2

Accessibility & contrast

On white

5.10
#5A5FDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#5A5FDD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FDD
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FDD#FFFFFF#000000##FFFFFF
##5A5FDD1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E1
Deuteranopia (green-blind)
#0069DA
Tritanopia (blue-blind)
#007D95
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a5fdd;
/* rgb */ color: rgb(90, 95, 221);
/* oklch */ color: oklch(55.2% 0.189 276.6);
Tailwind
colors: {
  custom: {
    50: '#948ce8',
    500: '#5a5fdd',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fdd;
$custom-light: #948ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fdd",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 221
  },
  "hsl": {
    "h": 237.71,
    "s": 65.829,
    "l": 60.98
  },
  "oklch": {
    "l": 0.55201,
    "c": 0.18855,
    "h": 276.6
  },
  "luminance": 0.15579
}

Semantic roles & 50–950 ramp

primary
#5A5FDD
secondary
#E2E0B1
accent
#C718CE
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5A5FDD

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

Preview Lab → · Contrast checker → · Palette generator →

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