#5F4DBF#5F4DBF

#5F4DBF is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.2% C 0.171 H 285.7°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#5F4DBF
RGBrgb(95, 77, 191)
HSLhsl(249, 47%, 53%)
HSVhsv(249, 60%, 75%)
CMYKcmyk(50.3%, 59.7%, 0%, 25.1%)
CIE-LABlab(40.41, 37.30, -57.67)
CIE-LCHlch(40.41, 68.68, 302.90°)
OKLaboklab(50.19% 0.0463 -0.165)
OKLCHoklch(50.19% 0.171 285.7)
XYZxyz(16.7744, 11.5014, 50.6162)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4DBF #ADBF4D
analogous
#4D74BF #5F4DBF #984DBF
triadic
#5F4DBF #BF5F4D #4DBF5F
tetradic
#5F4DBF #BF4D74 #ADBF4D #4DBF98
square
#5F4DBF #BF4D74 #ADBF4D #4DBF98
split-complementary
#5F4DBF #BF984D #74BF4D
monochromatic
#31276B #463798 #5F4DBF #877ACF #B0A7DF

Accessibility & contrast

On white

6.36
#5F4DBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5F4DBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4DBF
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4DBF#FFFFFF#000000##FFFFFF
##5F4DBF1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f4dbf;
/* rgb */ color: rgb(95, 77, 191);
/* oklch */ color: oklch(50.2% 0.171 285.7);
Tailwind
colors: {
  custom: {
    50: '#947fd3',
    500: '#5f4dbf',
    950: '#000000',
  },
}
SCSS
$custom: #5f4dbf;
$custom-light: #947fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4dbf",
  "rgb": {
    "r": 95,
    "g": 77,
    "b": 191
  },
  "hsl": {
    "h": 249.474,
    "s": 47.107,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50186,
    "c": 0.1714,
    "h": 285.7
  },
  "luminance": 0.11502
}

Semantic roles & 50–950 ramp

primary
#5F4DBF
secondary
#C5CD9B
accent
#D751C2
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F4DBF

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

Preview Lab → · Contrast checker → · Palette generator →

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