#5F4FBF#5F4FBF

#5F4FBF is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.5% C 0.169 H 285.1°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#5F4FBF
RGBrgb(95, 79, 191)
HSLhsl(249, 47%, 53%)
HSVhsv(249, 59%, 75%)
CMYKcmyk(50.3%, 58.6%, 0%, 25.1%)
CIE-LABlab(40.87, 36.11, -56.92)
CIE-LCHlch(40.87, 67.41, 302.39°)
OKLaboklab(50.52% 0.0441 -0.1628)
OKLCHoklch(50.52% 0.169 285.1)
XYZxyz(16.9165, 11.7856, 50.6636)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FBF #AFBF4F
analogous
#4F77BF #5F4FBF #974FBF
triadic
#5F4FBF #BF5F4F #4FBF5F
tetradic
#5F4FBF #BF4F77 #AFBF4F #4FBF97
square
#5F4FBF #BF4F77 #AFBF4F #4FBF97
split-complementary
#5F4FBF #BF974F #77BF4F
monochromatic
#31276C #463899 #5F4FBF #887CCF #B1A9E0

Accessibility & contrast

On white

6.26
#5F4FBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#5F4FBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FBF
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FBF#FFFFFF#000000##FFFFFF
##5F4FBF1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C3
Deuteranopia (green-blind)
#005DBD
Tritanopia (blue-blind)
#3C697F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f4fbf;
/* rgb */ color: rgb(95, 79, 191);
/* oklch */ color: oklch(50.5% 0.169 285.1);
Tailwind
colors: {
  custom: {
    50: '#9481d3',
    500: '#5f4fbf',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fbf;
$custom-light: #9481d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fbf",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 191
  },
  "hsl": {
    "h": 248.571,
    "s": 46.667,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50524,
    "c": 0.1687,
    "h": 285.1
  },
  "luminance": 0.11786
}

Semantic roles & 50–950 ramp

primary
#5F4FBF
secondary
#C6CD9D
accent
#D651C3
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F4FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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