#5656CB#5656CB

#5656CB is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.0% C 0.177 H 278.3°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#5656CB
RGBrgb(86, 86, 203)
HSLhsl(240, 53%, 57%)
HSVhsv(240, 58%, 80%)
CMYKcmyk(57.6%, 57.6%, 0%, 20.4%)
CIE-LABlab(42.68, 33.89, -60.99)
CIE-LCHlch(42.68, 69.78, 299.06°)
OKLaboklab(51.95% 0.0255 -0.175)
OKLCHoklch(51.95% 0.177 278.3)
XYZxyz(17.9416, 12.9445, 58.0414)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5656CB #CBCB56
analogous
#5691CB #5656CB #9156CB
triadic
#5656CB #CB5656 #56CB56
tetradic
#5656CB #CB5691 #CBCB56 #56CB91
square
#5656CB #CB5691 #CBCB56 #56CB91
split-complementary
#5656CB #CB9156 #91CB56
monochromatic
#27277F #3636AE #5656CB #8585D9 #B4B4E8

Accessibility & contrast

On white

5.85
#5656CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#5656CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5656CB
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5656CB#FFFFFF#000000##FFFFFF
##5656CB1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#0A7288
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5656cb;
/* rgb */ color: rgb(86, 86, 203);
/* oklch */ color: oklch(52.0% 0.177 278.3);
Tailwind
colors: {
  custom: {
    50: '#9085dc',
    500: '#5656cb',
    950: '#000000',
  },
}
SCSS
$custom: #5656cb;
$custom-light: #9085dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5656cb",
  "rgb": {
    "r": 86,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 240,
    "s": 52.941,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51952,
    "c": 0.17688,
    "h": 278.3
  },
  "luminance": 0.12946
}

Semantic roles & 50–950 ramp

primary
#5656CB
secondary
#D6D6A6
accent
#DC4BDC
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5656CB

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

Preview Lab → · Contrast checker → · Palette generator →

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