#5F4DBD#5F4DBD

#5F4DBD is a mid, vivid blue. Relative luminance 0.114; OKLCH L 50.0% C 0.169 H 285.9°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#5F4DBD
RGBrgb(95, 77, 189)
HSLhsl(250, 46%, 52%)
HSVhsv(250, 59%, 74%)
CMYKcmyk(49.7%, 59.3%, 0%, 25.9%)
CIE-LABlab(40.27, 36.70, -56.73)
CIE-LCHlch(40.27, 67.57, 302.90°)
OKLaboklab(50.04% 0.0463 -0.1623)
OKLCHoklch(50.04% 0.169 285.9)
XYZxyz(16.5558, 11.4140, 49.4650)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4DBD #ABBD4D
analogous
#4D73BD #5F4DBD #974DBD
triadic
#5F4DBD #BD5F4D #4DBD5F
tetradic
#5F4DBD #BD4D73 #ABBD4D #4DBD97
square
#5F4DBD #BD4D73 #ABBD4D #4DBD97
split-complementary
#5F4DBD #BD974D #73BD4D
monochromatic
#312769 #473795 #5F4DBD #877ACE #AFA6DE

Accessibility & contrast

On white

6.40
#5F4DBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5F4DBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4DBD
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4DBD#FFFFFF#000000##FFFFFF
##5F4DBD1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C1
Deuteranopia (green-blind)
#005CBB
Tritanopia (blue-blind)
#3D677D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f4dbd;
/* rgb */ color: rgb(95, 77, 189);
/* oklch */ color: oklch(50.0% 0.169 285.9);
Tailwind
colors: {
  custom: {
    50: '#947fd2',
    500: '#5f4dbd',
    950: '#000000',
  },
}
SCSS
$custom: #5f4dbd;
$custom-light: #947fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4dbd",
  "rgb": {
    "r": 95,
    "g": 77,
    "b": 189
  },
  "hsl": {
    "h": 249.643,
    "s": 45.902,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50035,
    "c": 0.16877,
    "h": 285.9
  },
  "luminance": 0.11415
}

Semantic roles & 50–950 ramp

primary
#5F4DBD
secondary
#C3CB9A
accent
#D652C0
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F4DBD

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

Preview Lab → · Contrast checker → · Palette generator →

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