#5F51DC#5F51DC

#5F51DC is a mid, highly saturated blue. Relative luminance 0.135; OKLCH L 53.1% C 0.204 H 281.5°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#5F51DC
RGBrgb(95, 81, 220)
HSLhsl(246, 67%, 59%)
HSVhsv(246, 63%, 86%)
CMYKcmyk(56.8%, 63.2%, 0%, 13.7%)
CIE-LABlab(43.48, 43.83, -69.41)
CIE-LCHlch(43.48, 82.09, 302.27°)
OKLaboklab(53.11% 0.0405 -0.1995)
OKLCHoklch(53.11% 0.204 281.5)
XYZxyz(20.5760, 13.4837, 69.2146)
Luminance0.1348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F51DC #CEDC51
analogous
#5189DC #5F51DC #A551DC
triadic
#5F51DC #DC5F51 #51DC5F
tetradic
#5F51DC #DC5189 #CEDC51 #51DCA5
square
#5F51DC #DC5189 #CEDC51 #51DCA5
split-complementary
#5F51DC #DCA551 #89DC51
monochromatic
#2A1E95 #3828C8 #5F51DC #8E84E6 #BDB7F0

Accessibility & contrast

On white

5.68
#5F51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#5F51DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F51DC
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F51DC#FFFFFF#000000##FFFFFF
##5F51DC1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE0
Deuteranopia (green-blind)
#0062D9
Tritanopia (blue-blind)
#18748F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5f51dc;
/* rgb */ color: rgb(95, 81, 220);
/* oklch */ color: oklch(53.1% 0.204 281.5);
Tailwind
colors: {
  custom: {
    50: '#9883e8',
    500: '#5f51dc',
    950: '#000000',
  },
}
SCSS
$custom: #5f51dc;
$custom-light: #9883e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f51dc",
  "rgb": {
    "r": 95,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 246.043,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.53114,
    "c": 0.20361,
    "h": 281.5
  },
  "luminance": 0.13485
}

Semantic roles & 50–950 ramp

primary
#5F51DC
secondary
#DAE0A9
accent
#E93ED8
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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