#5F5DCD#5F5DCD

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

Color values

HEX#5F5DCD
RGBrgb(95, 93, 205)
HSLhsl(241, 53%, 58%)
HSVhsv(241, 55%, 80%)
CMYKcmyk(53.7%, 54.6%, 0%, 19.6%)
CIE-LABlab(45.18, 31.96, -58.07)
CIE-LCHlch(45.18, 66.29, 298.82°)
OKLaboklab(54.02% 0.0291 -0.1661)
OKLCHoklch(54.02% 0.169 279.9)
XYZxyz(19.6497, 14.6682, 59.5416)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5DCD #CBCD5D
analogous
#5D93CD #5F5DCD #975DCD
triadic
#5F5DCD #CD5F5D #5DCD5F
tetradic
#5F5DCD #CD5D93 #CBCD5D #5DCD97
square
#5F5DCD #CD5D93 #CBCD5D #5DCD97
split-complementary
#5F5DCD #CD975D #93CD5D
monochromatic
#2B2986 #3A38B5 #5F5DCD #8D8CDB #BBBBEA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F5DCD#FFFFFF#000000##FFFFFF
##5F5DCD1.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)
#156FD1
Deuteranopia (green-blind)
#0067CB
Tritanopia (blue-blind)
#2D778C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f5dcd;
/* rgb */ color: rgb(95, 93, 205);
/* oklch */ color: oklch(54.0% 0.169 279.9);
Tailwind
colors: {
  custom: {
    50: '#958bdd',
    500: '#5f5dcd',
    950: '#000000',
  },
}
SCSS
$custom: #5f5dcd;
$custom-light: #958bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5dcd",
  "rgb": {
    "r": 95,
    "g": 93,
    "b": 205
  },
  "hsl": {
    "h": 241.071,
    "s": 52.83,
    "l": 58.431
  },
  "oklch": {
    "l": 0.54019,
    "c": 0.16868,
    "h": 279.9
  },
  "luminance": 0.14669
}

Semantic roles & 50–950 ramp

primary
#5F5DCD
secondary
#D8D9AD
accent
#DC4CDA
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5F5DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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