#5D5DCC#5D5DCC

#5D5DCC is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.8% C 0.168 H 279.2°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5D5DCC
RGBrgb(93, 93, 204)
HSLhsl(240, 52%, 58%)
HSVhsv(240, 54%, 80%)
CMYKcmyk(54.4%, 54.4%, 0%, 20%)
CIE-LABlab(44.96, 31.24, -57.85)
CIE-LCHlch(44.96, 65.75, 298.37°)
OKLaboklab(53.8% 0.0267 -0.1655)
OKLCHoklch(53.8% 0.168 279.2)
XYZxyz(19.3242, 14.5143, 58.8983)
Luminance0.1452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D5DCC #CCCC5D
analogous
#5D94CC #5D5DCC #945DCC
triadic
#5D5DCC #CC5D5D #5DCC5D
tetradic
#5D5DCC #CC5D94 #CCCC5D #5DCC94
square
#5D5DCC #CC5D94 #CCCC5D #5DCC94
split-complementary
#5D5DCC #CC945D #94CC5D
monochromatic
#2A2A85 #3838B3 #5D5DCC #8C8CDB #BABAE9

Accessibility & contrast

On white

5.38
#5D5DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5D5DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D5DCC
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D5DCC#FFFFFF#000000##FFFFFF
##5D5DCC1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166FD0
Deuteranopia (green-blind)
#0066CA
Tritanopia (blue-blind)
#28768B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5d5dcc;
/* rgb */ color: rgb(93, 93, 204);
/* oklch */ color: oklch(53.8% 0.168 279.2);
Tailwind
colors: {
  custom: {
    50: '#948bdc',
    500: '#5d5dcc',
    950: '#000000',
  },
}
SCSS
$custom: #5d5dcc;
$custom-light: #948bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d5dcc",
  "rgb": {
    "r": 93,
    "g": 93,
    "b": 204
  },
  "hsl": {
    "h": 240,
    "s": 52.113,
    "l": 58.235
  },
  "oklch": {
    "l": 0.53801,
    "c": 0.16769,
    "h": 279.2
  },
  "luminance": 0.14515
}

Semantic roles & 50–950 ramp

primary
#5D5DCC
secondary
#D9D9AC
accent
#DC4CDC
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5D5DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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