#5A5FDC#5A5FDC

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

Color values

HEX#5A5FDC
RGBrgb(90, 95, 220)
HSLhsl(238, 65%, 61%)
HSVhsv(238, 59%, 86%)
CMYKcmyk(59.1%, 56.8%, 0%, 13.7%)
CIE-LABlab(46.34, 34.61, -64.77)
CIE-LCHlch(46.34, 73.44, 298.12°)
OKLaboklab(55.13% 0.0216 -0.186)
OKLCHoklch(55.13% 0.187 276.6)
XYZxyz(21.2228, 15.5238, 69.5743)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FDC #DCD75A
analogous
#5AA0DC #5A5FDC #965ADC
triadic
#5A5FDC #DC5A5F #5FDC5A
tetradic
#5A5FDC #DC5AA0 #DCD75A #5ADC96
square
#5A5FDC #DC5AA0 #DCD75A #5ADC96
split-complementary
#5A5FDC #DC965A #A0DC5A
monochromatic
#21269B #2C32CD #5A5FDC #8C90E7 #BFC1F1

Accessibility & contrast

On white

5.12
#5A5FDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#5A5FDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FDC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FDC#FFFFFF#000000##FFFFFF
##5A5FDC1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E0
Deuteranopia (green-blind)
#0068D9
Tritanopia (blue-blind)
#007D94
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a5fdc;
/* rgb */ color: rgb(90, 95, 220);
/* oklch */ color: oklch(55.1% 0.187 276.6);
Tailwind
colors: {
  custom: {
    50: '#948ce8',
    500: '#5a5fdc',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fdc;
$custom-light: #948ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fdc",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 220
  },
  "hsl": {
    "h": 237.692,
    "s": 65,
    "l": 60.784
  },
  "oklch": {
    "l": 0.55126,
    "c": 0.18723,
    "h": 276.6
  },
  "luminance": 0.15525
}

Semantic roles & 50–950 ramp

primary
#5A5FDC
secondary
#E2E0B0
accent
#C619CD
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5A5FDC

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

Preview Lab → · Contrast checker → · Palette generator →

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