#5F56BD#5F56BD

#5F56BD is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.6% C 0.156 H 283.4°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#5F56BD
RGBrgb(95, 86, 189)
HSLhsl(245, 44%, 54%)
HSVhsv(245, 54%, 74%)
CMYKcmyk(49.7%, 54.5%, 0%, 25.9%)
CIE-LABlab(42.40, 31.24, -53.29)
CIE-LCHlch(42.40, 61.77, 300.38°)
OKLaboklab(51.61% 0.0363 -0.1521)
OKLCHoklch(51.61% 0.156 283.4)
XYZxyz(17.2297, 12.7617, 49.6896)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56BD #B4BD56
analogous
#5681BD #5F56BD #9356BD
triadic
#5F56BD #BD5F56 #56BD5F
tetradic
#5F56BD #BD5681 #B4BD56 #56BD93
square
#5F56BD #BD5681 #B4BD56 #56BD93
split-complementary
#5F56BD #BD9356 #81BD56
monochromatic
#312B6E #443C9A #5F56BD #8982CE #B2AEDF

Accessibility & contrast

On white

5.91
#5F56BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5F56BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F56BD
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F56BD#FFFFFF#000000##FFFFFF
##5F56BD1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B67C1
Deuteranopia (green-blind)
#1261BB
Tritanopia (blue-blind)
#3C6D81
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f56bd;
/* rgb */ color: rgb(95, 86, 189);
/* oklch */ color: oklch(51.6% 0.156 283.4);
Tailwind
colors: {
  custom: {
    50: '#9386d1',
    500: '#5f56bd',
    950: '#000000',
  },
}
SCSS
$custom: #5f56bd;
$custom-light: #9386d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56bd",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 189
  },
  "hsl": {
    "h": 245.243,
    "s": 43.83,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51613,
    "c": 0.15637,
    "h": 283.4
  },
  "luminance": 0.12763
}

Semantic roles & 50–950 ramp

primary
#5F56BD
secondary
#CACDA1
accent
#D454C8
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0E0B14
muted
#7E7C82

Preview Lab

Preview with #5F56BD

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

Preview Lab → · Contrast checker → · Palette generator →

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