#5F50BB#5F50BB

#5F50BB is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.4% C 0.162 H 285.4°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#5F50BB
RGBrgb(95, 80, 187)
HSLhsl(248, 44%, 52%)
HSVhsv(248, 57%, 73%)
CMYKcmyk(49.2%, 57.2%, 0%, 26.7%)
CIE-LABlab(40.83, 34.29, -54.66)
CIE-LCHlch(40.83, 64.52, 302.10°)
OKLaboklab(50.4% 0.043 -0.1562)
OKLCHoklch(50.4% 0.162 285.4)
XYZxyz(16.5550, 11.7573, 48.4012)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F50BB #ACBB50
analogous
#5077BB #5F50BB #9450BB
triadic
#5F50BB #BB5F50 #50BB5F
tetradic
#5F50BB #BB5077 #ACBB50 #50BB94
square
#5F50BB #BB5077 #ACBB50 #50BB94
split-complementary
#5F50BB #BB9450 #77BB50
monochromatic
#312868 #463A94 #5F50BB #877CCC #B0A8DD

Accessibility & contrast

On white

6.27
#5F50BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5F50BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F50BB
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F50BB#FFFFFF#000000##FFFFFF
##5F50BB1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063BF
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#3E687E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f50bb;
/* rgb */ color: rgb(95, 80, 187);
/* oklch */ color: oklch(50.4% 0.162 285.4);
Tailwind
colors: {
  custom: {
    50: '#9381d0',
    500: '#5f50bb',
    950: '#000000',
  },
}
SCSS
$custom: #5f50bb;
$custom-light: #9381d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f50bb",
  "rgb": {
    "r": 95,
    "g": 80,
    "b": 187
  },
  "hsl": {
    "h": 248.411,
    "s": 44.033,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50402,
    "c": 0.162,
    "h": 285.4
  },
  "luminance": 0.11758
}

Semantic roles & 50–950 ramp

primary
#5F50BB
secondary
#C4CB9C
accent
#D454C2
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0A14
muted
#7E7C82

Preview Lab

Preview with #5F50BB

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

Preview Lab → · Contrast checker → · Palette generator →

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