#5656BF#5656BF

#5656BF is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.1% C 0.161 H 279.1°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5656BF
RGBrgb(86, 86, 191)
HSLhsl(240, 45%, 54%)
HSVhsv(240, 55%, 75%)
CMYKcmyk(55%, 55%, 0%, 25.1%)
CIE-LABlab(41.84, 30.00, -55.40)
CIE-LCHlch(41.84, 63.00, 298.44°)
OKLaboklab(51.06% 0.0253 -0.1586)
OKLCHoklch(51.06% 0.161 279.1)
XYZxyz(16.5666, 12.3945, 50.7995)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5656BF #BFBF56
analogous
#568BBF #5656BF #8B56BF
triadic
#5656BF #BF5656 #56BF56
tetradic
#5656BF #BF568B #BFBF56 #56BF8B
square
#5656BF #BF568B #BFBF56 #56BF8B
split-complementary
#5656BF #BF8B56 #8BBF56
monochromatic
#2A2A70 #3B3B9D #5656BF #8282D0 #AFAFE1

Accessibility & contrast

On white

6.04
#5656BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5656BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5656BF
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5656BF#FFFFFF#000000##FFFFFF
##5656BF1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1067C3
Deuteranopia (green-blind)
#005FBD
Tritanopia (blue-blind)
#236E82
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5656bf;
/* rgb */ color: rgb(86, 86, 191);
/* oklch */ color: oklch(51.1% 0.161 279.1);
Tailwind
colors: {
  custom: {
    50: '#8e85d3',
    500: '#5656bf',
    950: '#000000',
  },
}
SCSS
$custom: #5656bf;
$custom-light: #8e85d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5656bf",
  "rgb": {
    "r": 86,
    "g": 86,
    "b": 191
  },
  "hsl": {
    "h": 240,
    "s": 45.064,
    "l": 54.314
  },
  "oklch": {
    "l": 0.51058,
    "c": 0.16059,
    "h": 279.1
  },
  "luminance": 0.12396
}

Semantic roles & 50–950 ramp

primary
#5656BF
secondary
#CFCFA2
accent
#D553D5
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5656BF

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

Preview Lab → · Contrast checker → · Palette generator →

#5656BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva