#5656CD#5656CD

#5656CD is a mid, vivid blue. Relative luminance 0.130; OKLCH L 52.1% C 0.180 H 278.2°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#5656CD
RGBrgb(86, 86, 205)
HSLhsl(240, 54%, 57%)
HSVhsv(240, 58%, 80%)
CMYKcmyk(58%, 58%, 0%, 19.6%)
CIE-LABlab(42.82, 34.54, -61.91)
CIE-LCHlch(42.82, 70.90, 299.16°)
OKLaboklab(52.11% 0.0255 -0.1777)
OKLCHoklch(52.11% 0.18 278.2)
XYZxyz(18.1815, 13.0405, 59.3048)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5656CD #CDCD56
analogous
#5692CD #5656CD #9256CD
triadic
#5656CD #CD5656 #56CD56
tetradic
#5656CD #CD5692 #CDCD56 #56CD92
square
#5656CD #CD5692 #CDCD56 #56CD92
split-complementary
#5656CD #CD9256 #92CD56
monochromatic
#262682 #3434B1 #5656CD #8585DB #B4B4E9

Accessibility & contrast

On white

5.82
#5656CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5656CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5656CD
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5656CD#FFFFFF#000000##FFFFFF
##5656CD1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#0060CB
Tritanopia (blue-blind)
#027289
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5656cd;
/* rgb */ color: rgb(86, 86, 205);
/* oklch */ color: oklch(52.1% 0.180 278.2);
Tailwind
colors: {
  custom: {
    50: '#9086dd',
    500: '#5656cd',
    950: '#000000',
  },
}
SCSS
$custom: #5656cd;
$custom-light: #9086dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5656cd",
  "rgb": {
    "r": 86,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 240,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52105,
    "c": 0.17956,
    "h": 278.2
  },
  "luminance": 0.13042
}

Semantic roles & 50–950 ramp

primary
#5656CD
secondary
#D8D8A7
accent
#DE4ADE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5656CD

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

Preview Lab → · Contrast checker → · Palette generator →

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