#5F56DC#5F56DC

#5F56DC is a mid, vivid blue. Relative luminance 0.143; OKLCH L 53.9% C 0.197 H 280.5°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5F56DC
RGBrgb(95, 86, 220)
HSLhsl(244, 66%, 60%)
HSVhsv(244, 61%, 86%)
CMYKcmyk(56.8%, 60.9%, 0%, 13.7%)
CIE-LABlab(44.60, 40.90, -67.60)
CIE-LCHlch(44.60, 79.01, 301.17°)
OKLaboklab(53.93% 0.0359 -0.1942)
OKLCHoklch(53.93% 0.197 280.5)
XYZxyz(20.9613, 14.2544, 69.3431)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56DC #D3DC56
analogous
#5690DC #5F56DC #A256DC
triadic
#5F56DC #DC5F56 #56DC5F
tetradic
#5F56DC #DC5690 #D3DC56 #56DCA2
square
#5F56DC #DC5690 #D3DC56 #56DCA2
split-complementary
#5F56DC #DCA256 #90DC56
monochromatic
#282098 #352ACB #5F56DC #8F89E6 #BFBBF1

Accessibility & contrast

On white

5.45
#5F56DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#5F56DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F56DC
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F56DC#FFFFFF#000000##FFFFFF
##5F56DC1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE0
Deuteranopia (green-blind)
#0064D9
Tritanopia (blue-blind)
#177791
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5f56dc;
/* rgb */ color: rgb(95, 86, 220);
/* oklch */ color: oklch(53.9% 0.197 280.5);
Tailwind
colors: {
  custom: {
    50: '#9786e8',
    500: '#5f56dc',
    950: '#000000',
  },
}
SCSS
$custom: #5f56dc;
$custom-light: #9786e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56dc",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 220
  },
  "hsl": {
    "h": 244.03,
    "s": 65.686,
    "l": 60
  },
  "oklch": {
    "l": 0.53927,
    "c": 0.19749,
    "h": 280.5
  },
  "luminance": 0.14256
}

Semantic roles & 50–950 ramp

primary
#5F56DC
secondary
#DDE1AD
accent
#E93FDD
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5F56DC

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

Preview Lab → · Contrast checker → · Palette generator →

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