#5F50CC#5F50CC

#5F50CC is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.7% C 0.184 H 283.3°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#5F50CC
RGBrgb(95, 80, 204)
HSLhsl(247, 55%, 56%)
HSVhsv(247, 61%, 80%)
CMYKcmyk(53.4%, 60.8%, 0%, 20%)
CIE-LABlab(42.04, 39.49, -62.57)
CIE-LCHlch(42.04, 73.99, 302.26°)
OKLaboklab(51.68% 0.0426 -0.1794)
OKLCHoklch(51.68% 0.184 283.3)
XYZxyz(18.4837, 12.5288, 58.5594)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F50CC #BDCC50
analogous
#507FCC #5F50CC #9D50CC
triadic
#5F50CC #CC5F50 #50CC5F
tetradic
#5F50CC #CC507F #BDCC50 #50CC9D
square
#5F50CC #CC507F #BDCC50 #50CC9D
split-complementary
#5F50CC #CC9D50 #7FCC50
monochromatic
#2F247D #4132AD #5F50CC #8A7FDA #B6AFE8

Accessibility & contrast

On white

5.99
#5F50CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5F50CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F50CC
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F50CC#FFFFFF#000000##FFFFFF
##5F50CC1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#306E86
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f50cc;
/* rgb */ color: rgb(95, 80, 204);
/* oklch */ color: oklch(51.7% 0.184 283.3);
Tailwind
colors: {
  custom: {
    50: '#9582dc',
    500: '#5f50cc',
    950: '#000000',
  },
}
SCSS
$custom: #5f50cc;
$custom-light: #9582dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f50cc",
  "rgb": {
    "r": 95,
    "g": 80,
    "b": 204
  },
  "hsl": {
    "h": 247.258,
    "s": 54.867,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51682,
    "c": 0.18442,
    "h": 283.3
  },
  "luminance": 0.1253
}

Semantic roles & 50–950 ramp

primary
#5F50CC
secondary
#CFD6A2
accent
#DE4ACC
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F50CC

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

Preview Lab → · Contrast checker → · Palette generator →

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