#5F50C8#5F50C8

#5F50C8 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.4% C 0.179 H 283.8°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#5F50C8
RGBrgb(95, 80, 200)
HSLhsl(248, 52%, 55%)
HSVhsv(248, 60%, 78%)
CMYKcmyk(52.5%, 60%, 0%, 21.6%)
CIE-LABlab(41.75, 38.26, -60.73)
CIE-LCHlch(41.75, 71.78, 302.21°)
OKLaboklab(51.37% 0.0427 -0.174)
OKLCHoklch(51.37% 0.179 283.8)
XYZxyz(18.0101, 12.3394, 56.0651)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F50C8 #B9C850
analogous
#507DC8 #5F50C8 #9B50C8
triadic
#5F50C8 #C85F50 #50C85F
tetradic
#5F50C8 #C8507D #B9C850 #50C89B
square
#5F50C8 #C8507D #B9C850 #50C89B
split-complementary
#5F50C8 #C89B50 #7DC850
monochromatic
#302678 #4334A6 #5F50C8 #8A7FD7 #B4ADE5

Accessibility & contrast

On white

6.06
#5F50C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5F50C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F50C8
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F50C8#FFFFFF#000000##FFFFFF
##5F50C81.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#005FC6
Tritanopia (blue-blind)
#346C84
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f50c8;
/* rgb */ color: rgb(95, 80, 200);
/* oklch */ color: oklch(51.4% 0.179 283.8);
Tailwind
colors: {
  custom: {
    50: '#9582da',
    500: '#5f50c8',
    950: '#000000',
  },
}
SCSS
$custom: #5f50c8;
$custom-light: #9582da;
$custom-dark: #000000;
JSON
{
  "hex": "#5f50c8",
  "rgb": {
    "r": 95,
    "g": 80,
    "b": 200
  },
  "hsl": {
    "h": 247.5,
    "s": 52.174,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51374,
    "c": 0.17922,
    "h": 283.8
  },
  "luminance": 0.1234
}

Semantic roles & 50–950 ramp

primary
#5F50C8
secondary
#CDD3A1
accent
#DC4CCA
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F50C8

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

Preview Lab → · Contrast checker → · Palette generator →

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