#5F4CBF#5F4CBF

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

Color values

HEX#5F4CBF
RGBrgb(95, 76, 191)
HSLhsl(250, 47%, 52%)
HSVhsv(250, 60%, 75%)
CMYKcmyk(50.3%, 60.2%, 0%, 25.1%)
CIE-LABlab(40.18, 37.90, -58.04)
CIE-LCHlch(40.18, 69.32, 303.14°)
OKLaboklab(50.02% 0.0473 -0.1661)
OKLCHoklch(50.02% 0.173 285.9)
XYZxyz(16.7049, 11.3626, 50.5931)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CBF #ACBF4C
analogous
#4C73BF #5F4CBF #994CBF
triadic
#5F4CBF #BF5F4C #4CBF5F
tetradic
#5F4CBF #BF4C73 #ACBF4C #4CBF99
square
#5F4CBF #BF4C73 #ACBF4C #4CBF99
split-complementary
#5F4CBF #BF994C #73BF4C
monochromatic
#31266B #463698 #5F4CBF #8779CF #B0A6DF

Accessibility & contrast

On white

6.42
#5F4CBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5F4CBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CBF
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CBF#FFFFFF#000000##FFFFFF
##5F4CBF1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#005BBD
Tritanopia (blue-blind)
#3C677E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f4cbf;
/* rgb */ color: rgb(95, 76, 191);
/* oklch */ color: oklch(50.0% 0.173 285.9);
Tailwind
colors: {
  custom: {
    50: '#947fd3',
    500: '#5f4cbf',
    950: '#000000',
  },
}
SCSS
$custom: #5f4cbf;
$custom-light: #947fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4cbf",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 191
  },
  "hsl": {
    "h": 249.913,
    "s": 47.325,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50018,
    "c": 0.17274,
    "h": 285.9
  },
  "luminance": 0.11363
}

Semantic roles & 50–950 ramp

primary
#5F4CBF
secondary
#C4CC9A
accent
#D751C1
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F4CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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