#5F50CD#5F50CD

#5F50CD is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.8% C 0.186 H 283.2°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5F50CD
RGBrgb(95, 80, 205)
HSLhsl(247, 56%, 56%)
HSVhsv(247, 61%, 80%)
CMYKcmyk(53.7%, 61%, 0%, 19.6%)
CIE-LABlab(42.12, 39.80, -63.03)
CIE-LCHlch(42.12, 74.54, 302.27°)
OKLaboklab(51.76% 0.0425 -0.1808)
OKLCHoklch(51.76% 0.186 283.2)
XYZxyz(18.6041, 12.5769, 59.1930)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F50CD #BECD50
analogous
#507FCD #5F50CD #9D50CD
triadic
#5F50CD #CD5F50 #50CD5F
tetradic
#5F50CD #CD507F #BECD50 #50CD9D
square
#5F50CD #CD507F #BECD50 #50CD9D
split-complementary
#5F50CD #CD9D50 #7FCD50
monochromatic
#2F247E #4132AE #5F50CD #8B80DB #B6AFE8

Accessibility & contrast

On white

5.97
#5F50CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5F50CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F50CD
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F50CD#FFFFFF#000000##FFFFFF
##5F50CD1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#2F6E87
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f50cd;
/* rgb */ color: rgb(95, 80, 205);
/* oklch */ color: oklch(51.8% 0.186 283.2);
Tailwind
colors: {
  custom: {
    50: '#9682dd',
    500: '#5f50cd',
    950: '#000000',
  },
}
SCSS
$custom: #5f50cd;
$custom-light: #9682dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f50cd",
  "rgb": {
    "r": 95,
    "g": 80,
    "b": 205
  },
  "hsl": {
    "h": 247.2,
    "s": 55.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5176,
    "c": 0.18572,
    "h": 283.2
  },
  "luminance": 0.12578
}

Semantic roles & 50–950 ramp

primary
#5F50CD
secondary
#D0D6A2
accent
#DF49CD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F50CD

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

Preview Lab → · Contrast checker → · Palette generator →

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