#5656C2#5656C2

#5656C2 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.3% C 0.165 H 278.9°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#5656C2
RGBrgb(86, 86, 194)
HSLhsl(240, 47%, 55%)
HSVhsv(240, 56%, 76%)
CMYKcmyk(55.7%, 55.7%, 0%, 23.9%)
CIE-LABlab(42.04, 30.97, -56.81)
CIE-LCHlch(42.04, 64.71, 298.60°)
OKLaboklab(51.28% 0.0254 -0.1627)
OKLCHoklch(51.28% 0.165 278.9)
XYZxyz(16.9001, 12.5279, 52.5561)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5656C2 #C2C256
analogous
#568CC2 #5656C2 #8C56C2
triadic
#5656C2 #C25656 #56C256
tetradic
#5656C2 #C2568C #C2C256 #56C28C
square
#5656C2 #C2568C #C2C256 #56C28C
split-complementary
#5656C2 #C28C56 #8CC256
monochromatic
#2A2A74 #3A3AA1 #5656C2 #8383D2 #B0B0E2

Accessibility & contrast

On white

5.99
#5656C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5656C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5656C2
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5656C2#FFFFFF#000000##FFFFFF
##5656C21.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0568C6
Deuteranopia (green-blind)
#005FC0
Tritanopia (blue-blind)
#1E6F83
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5656c2;
/* rgb */ color: rgb(86, 86, 194);
/* oklch */ color: oklch(51.3% 0.165 278.9);
Tailwind
colors: {
  custom: {
    50: '#8f85d5',
    500: '#5656c2',
    950: '#000000',
  },
}
SCSS
$custom: #5656c2;
$custom-light: #8f85d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5656c2",
  "rgb": {
    "r": 86,
    "g": 86,
    "b": 194
  },
  "hsl": {
    "h": 240,
    "s": 46.957,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51278,
    "c": 0.1647,
    "h": 278.9
  },
  "luminance": 0.12529
}

Semantic roles & 50–950 ramp

primary
#5656C2
secondary
#D1D1A3
accent
#D751D7
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5656C2

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

Preview Lab → · Contrast checker → · Palette generator →

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