#5F4DBE#5F4DBE

#5F4DBE is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.1% C 0.170 H 285.8°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#5F4DBE
RGBrgb(95, 77, 190)
HSLhsl(250, 47%, 52%)
HSVhsv(250, 59%, 75%)
CMYKcmyk(50%, 59.5%, 0%, 25.5%)
CIE-LABlab(40.34, 37.00, -57.20)
CIE-LCHlch(40.34, 68.13, 302.90°)
OKLaboklab(50.11% 0.0463 -0.1637)
OKLCHoklch(50.11% 0.17 285.8)
XYZxyz(16.6647, 11.4575, 50.0387)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4DBE #ACBE4D
analogous
#4D73BE #5F4DBE #984DBE
triadic
#5F4DBE #BE5F4D #4DBE5F
tetradic
#5F4DBE #BE4D73 #ACBE4D #4DBE98
square
#5F4DBE #BE4D73 #ACBE4D #4DBE98
split-complementary
#5F4DBE #BE984D #73BE4D
monochromatic
#31276A #463797 #5F4DBE #877ACE #B0A7DF

Accessibility & contrast

On white

6.38
#5F4DBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5F4DBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4DBE
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4DBE#FFFFFF#000000##FFFFFF
##5F4DBE1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C2
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#3D677E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f4dbe;
/* rgb */ color: rgb(95, 77, 190);
/* oklch */ color: oklch(50.1% 0.170 285.8);
Tailwind
colors: {
  custom: {
    50: '#947fd2',
    500: '#5f4dbe',
    950: '#000000',
  },
}
SCSS
$custom: #5f4dbe;
$custom-light: #947fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4dbe",
  "rgb": {
    "r": 95,
    "g": 77,
    "b": 190
  },
  "hsl": {
    "h": 249.558,
    "s": 46.502,
    "l": 52.353
  },
  "oklch": {
    "l": 0.5011,
    "c": 0.17009,
    "h": 285.8
  },
  "luminance": 0.11458
}

Semantic roles & 50–950 ramp

primary
#5F4DBE
secondary
#C4CC9B
accent
#D652C1
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F4DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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