#5F56DB#5F56DB

#5F56DB is a mid, vivid blue. Relative luminance 0.142; OKLCH L 53.8% C 0.196 H 280.6°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#5F56DB
RGBrgb(95, 86, 219)
HSLhsl(244, 65%, 60%)
HSVhsv(244, 61%, 86%)
CMYKcmyk(56.6%, 60.7%, 0%, 14.1%)
CIE-LABlab(44.52, 40.59, -67.15)
CIE-LCHlch(44.52, 78.46, 301.15°)
OKLaboklab(53.85% 0.036 -0.1929)
OKLCHoklch(53.85% 0.196 280.6)
XYZxyz(20.8293, 14.2016, 68.6477)
Luminance0.1420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56DB #D2DB56
analogous
#5690DB #5F56DB #A156DB
triadic
#5F56DB #DB5F56 #56DB5F
tetradic
#5F56DB #DB5690 #D2DB56 #56DBA1
square
#5F56DB #DB5690 #D2DB56 #56DBA1
split-complementary
#5F56DB #DBA156 #90DB56
monochromatic
#282097 #362BC9 #5F56DB #8F88E6 #BFBBF0

Accessibility & contrast

On white

5.47
#5F56DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#5F56DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F56DB
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F56DB#FFFFFF#000000##FFFFFF
##5F56DB1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#0064D8
Tritanopia (blue-blind)
#197690
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5f56db;
/* rgb */ color: rgb(95, 86, 219);
/* oklch */ color: oklch(53.8% 0.196 280.6);
Tailwind
colors: {
  custom: {
    50: '#9786e7',
    500: '#5f56db',
    950: '#000000',
  },
}
SCSS
$custom: #5f56db;
$custom-light: #9786e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56db",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 219
  },
  "hsl": {
    "h": 244.06,
    "s": 64.878,
    "l": 59.804
  },
  "oklch": {
    "l": 0.53849,
    "c": 0.19622,
    "h": 280.6
  },
  "luminance": 0.14203
}

Semantic roles & 50–950 ramp

primary
#5F56DB
secondary
#DDE0AD
accent
#E840DC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5F56DB

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

Preview Lab → · Contrast checker → · Palette generator →

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