#5F50BF#5F50BF

#5F50BF is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.7% C 0.167 H 284.9°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#5F50BF
RGBrgb(95, 80, 191)
HSLhsl(248, 46%, 53%)
HSVhsv(248, 58%, 75%)
CMYKcmyk(50.3%, 58.1%, 0%, 25.1%)
CIE-LABlab(41.11, 35.51, -56.55)
CIE-LCHlch(41.11, 66.77, 302.12°)
OKLaboklab(50.7% 0.043 -0.1617)
OKLCHoklch(50.7% 0.167 284.9)
XYZxyz(16.9891, 11.9310, 50.6878)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F50BF #B0BF50
analogous
#5078BF #5F50BF #9650BF
triadic
#5F50BF #BF5F50 #50BF5F
tetradic
#5F50BF #BF5078 #B0BF50 #50BF96
square
#5F50BF #BF5078 #B0BF50 #50BF96
split-complementary
#5F50BF #BF9650 #78BF50
monochromatic
#31286D #45389A #5F50BF #887DCF #B1AAE0

Accessibility & contrast

On white

6.20
#5F50BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5F50BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F50BF
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F50BF#FFFFFF#000000##FFFFFF
##5F50BF1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C3
Deuteranopia (green-blind)
#005EBD
Tritanopia (blue-blind)
#3B6980
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f50bf;
/* rgb */ color: rgb(95, 80, 191);
/* oklch */ color: oklch(50.7% 0.167 284.9);
Tailwind
colors: {
  custom: {
    50: '#9481d3',
    500: '#5f50bf',
    950: '#000000',
  },
}
SCSS
$custom: #5f50bf;
$custom-light: #9481d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f50bf",
  "rgb": {
    "r": 95,
    "g": 80,
    "b": 191
  },
  "hsl": {
    "h": 248.108,
    "s": 46.444,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50696,
    "c": 0.16735,
    "h": 284.9
  },
  "luminance": 0.11932
}

Semantic roles & 50–950 ramp

primary
#5F50BF
secondary
#C7CD9D
accent
#D652C4
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F50BF

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

Preview Lab → · Contrast checker → · Palette generator →

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