#5F5DAD#5F5DAD

#5F5DAD is a mid, vivid blue. Relative luminance 0.133; OKLCH L 51.9% C 0.124 H 282.3°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5F5DAD
RGBrgb(95, 93, 173)
HSLhsl(242, 33%, 52%)
HSVhsv(242, 46%, 68%)
CMYKcmyk(45.1%, 46.2%, 0%, 32.2%)
CIE-LABlab(43.18, 21.99, -42.67)
CIE-LCHlch(43.18, 48.00, 297.27°)
OKLaboklab(51.88% 0.0264 -0.1209)
OKLCHoklch(51.88% 0.124 282.3)
XYZxyz(16.1743, 13.2780, 41.2377)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5DAD #ABAD5D
analogous
#5D83AD #5F5DAD #875DAD
triadic
#5F5DAD #AD5F5D #5DAD5F
tetradic
#5F5DAD #AD5D83 #ABAD5D #5DAD87
square
#5F5DAD #AD5D83 #ABAD5D #5DAD87
split-complementary
#5F5DAD #AD875D #83AD5D
monochromatic
#31305F #474588 #5F5DAD #8786C2 #AFAED6

Accessibility & contrast

On white

5.74
#5F5DAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5F5DAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5DAD
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5DAD#FFFFFF#000000##FFFFFF
##5F5DAD1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D69B0
Deuteranopia (green-blind)
#3963AB
Tritanopia (blue-blind)
#466E7C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5f5dad;
/* rgb */ color: rgb(95, 93, 173);
/* oklch */ color: oklch(51.9% 0.124 282.3);
Tailwind
colors: {
  custom: {
    50: '#918ac6',
    500: '#5f5dad',
    950: '#000000',
  },
}
SCSS
$custom: #5f5dad;
$custom-light: #918ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5dad",
  "rgb": {
    "r": 95,
    "g": 93,
    "b": 173
  },
  "hsl": {
    "h": 241.5,
    "s": 32.787,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51878,
    "c": 0.12374,
    "h": 282.3
  },
  "luminance": 0.13279
}

Semantic roles & 50–950 ramp

primary
#5F5DAD
secondary
#C3C4A1
accent
#C95FC6
background
#F9F8FC
surface
#F1F0F8
border
#CBCBD1
text
#0D0B13
muted
#7E7C82

Preview Lab

Preview with #5F5DAD

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

Preview Lab → · Contrast checker → · Palette generator →

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