#5F56BF#5F56BF

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

Color values

HEX#5F56BF
RGBrgb(95, 86, 191)
HSLhsl(245, 45%, 54%)
HSVhsv(245, 55%, 75%)
CMYKcmyk(50.3%, 55%, 0%, 25.1%)
CIE-LABlab(42.53, 31.86, -54.24)
CIE-LCHlch(42.53, 62.90, 300.43°)
OKLaboklab(51.75% 0.0363 -0.1549)
OKLCHoklch(51.75% 0.159 283.2)
XYZxyz(17.4482, 12.8491, 50.8409)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56BF #B6BF56
analogous
#5682BF #5F56BF #9456BF
triadic
#5F56BF #BF5F56 #56BF5F
tetradic
#5F56BF #BF5682 #B6BF56 #56BF94
square
#5F56BF #BF5682 #B6BF56 #56BF94
split-complementary
#5F56BF #BF9456 #82BF56
monochromatic
#302A70 #443B9D #5F56BF #8982D0 #B3AFE1

Accessibility & contrast

On white

5.88
#5F56BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5F56BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F56BF
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F56BF#FFFFFF#000000##FFFFFF
##5F56BF1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1768C3
Deuteranopia (green-blind)
#0B61BD
Tritanopia (blue-blind)
#3B6E82
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f56bf;
/* rgb */ color: rgb(95, 86, 191);
/* oklch */ color: oklch(51.8% 0.159 283.2);
Tailwind
colors: {
  custom: {
    50: '#9386d3',
    500: '#5f56bf',
    950: '#000000',
  },
}
SCSS
$custom: #5f56bf;
$custom-light: #9386d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56bf",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 191
  },
  "hsl": {
    "h": 245.143,
    "s": 45.064,
    "l": 54.314
  },
  "oklch": {
    "l": 0.51754,
    "c": 0.15911,
    "h": 283.2
  },
  "luminance": 0.1285
}

Semantic roles & 50–950 ramp

primary
#5F56BF
secondary
#CBCFA2
accent
#D553CA
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0E0B14
muted
#7E7C83

Preview Lab

Preview with #5F56BF

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

Preview Lab → · Contrast checker → · Palette generator →

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