#5C5FDB#5C5FDB

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

Color values

HEX#5C5FDB
RGBrgb(92, 95, 219)
HSLhsl(239, 64%, 61%)
HSVhsv(239, 58%, 86%)
CMYKcmyk(58%, 56.6%, 0%, 14.1%)
CIE-LABlab(46.41, 34.64, -64.09)
CIE-LCHlch(46.41, 72.86, 298.39°)
OKLaboklab(55.19% 0.0239 -0.1839)
OKLCHoklch(55.19% 0.185 277.4)
XYZxyz(21.2879, 15.5727, 68.8881)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C5FDB #DBD85C
analogous
#5C9EDB #5C5FDB #985CDB
triadic
#5C5FDB #DB5C5F #5FDB5C
tetradic
#5C5FDB #DB5C9E #DBD85C #5CDB98
square
#5C5FDB #DB5C9E #DBD85C #5CDB98
split-complementary
#5C5FDB #DB985C #9EDB5C
monochromatic
#22259A #2D31CD #5C5FDB #8E90E6 #C0C1F1

Accessibility & contrast

On white

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

On black

4.11
#5C5FDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5C5FDB#FFFFFF#000000##FFFFFF
##5C5FDB1.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#0069D8
Tritanopia (blue-blind)
#007C94
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5c5fdb;
/* rgb */ color: rgb(92, 95, 219);
/* oklch */ color: oklch(55.2% 0.185 277.4);
Tailwind
colors: {
  custom: {
    50: '#958ce7',
    500: '#5c5fdb',
    950: '#000000',
  },
}
SCSS
$custom: #5c5fdb;
$custom-light: #958ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c5fdb",
  "rgb": {
    "r": 92,
    "g": 95,
    "b": 219
  },
  "hsl": {
    "h": 238.583,
    "s": 63.819,
    "l": 60.98
  },
  "oklch": {
    "l": 0.55187,
    "c": 0.18546,
    "h": 277.4
  },
  "luminance": 0.15574
}

Semantic roles & 50–950 ramp

primary
#5C5FDB
secondary
#E1E0B1
accent
#C71ACC
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5C5FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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