#5F56BE#5F56BE

#5F56BE is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.7% C 0.158 H 283.3°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#5F56BE
RGBrgb(95, 86, 190)
HSLhsl(245, 44%, 54%)
HSVhsv(245, 55%, 75%)
CMYKcmyk(50%, 54.7%, 0%, 25.5%)
CIE-LABlab(42.47, 31.55, -53.76)
CIE-LCHlch(42.47, 62.34, 300.41°)
OKLaboklab(51.68% 0.0363 -0.1535)
OKLCHoklch(51.68% 0.158 283.3)
XYZxyz(17.3386, 12.8053, 50.2633)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56BE #B5BE56
analogous
#5681BE #5F56BE #9356BE
triadic
#5F56BE #BE5F56 #56BE5F
tetradic
#5F56BE #BE5681 #B5BE56 #56BE93
square
#5F56BE #BE5681 #B5BE56 #56BE93
split-complementary
#5F56BE #BE9356 #81BE56
monochromatic
#312B6F #443C9B #5F56BE #8982CF #B3AEE0

Accessibility & contrast

On white

5.90
#5F56BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5F56BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F56BE
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F56BE#FFFFFF#000000##FFFFFF
##5F56BE1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1968C2
Deuteranopia (green-blind)
#0F61BC
Tritanopia (blue-blind)
#3C6D81
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f56be;
/* rgb */ color: rgb(95, 86, 190);
/* oklch */ color: oklch(51.7% 0.158 283.3);
Tailwind
colors: {
  custom: {
    50: '#9386d2',
    500: '#5f56be',
    950: '#000000',
  },
}
SCSS
$custom: #5f56be;
$custom-light: #9386d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56be",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 190
  },
  "hsl": {
    "h": 245.192,
    "s": 44.444,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51683,
    "c": 0.15774,
    "h": 283.3
  },
  "luminance": 0.12806
}

Semantic roles & 50–950 ramp

primary
#5F56BE
secondary
#CACEA2
accent
#D454C9
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0E0B14
muted
#7E7C83

Preview Lab

Preview with #5F56BE

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

Preview Lab → · Contrast checker → · Palette generator →

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