#5656D2#5656D2

#5656D2 is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.5% C 0.186 H 277.9°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5656D2
RGBrgb(86, 86, 210)
HSLhsl(240, 58%, 58%)
HSVhsv(240, 59%, 82%)
CMYKcmyk(59%, 59%, 0%, 17.6%)
CIE-LABlab(43.19, 36.16, -64.19)
CIE-LCHlch(43.19, 73.68, 299.40°)
OKLaboklab(52.49% 0.0254 -0.1844)
OKLCHoklch(52.49% 0.186 277.9)
XYZxyz(18.7947, 13.2858, 62.5343)
Luminance0.1329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5656D2 #D2D256
analogous
#5694D2 #5656D2 #9456D2
triadic
#5656D2 #D25656 #56D256
tetradic
#5656D2 #D25694 #D2D256 #56D294
square
#5656D2 #D25694 #D2D256 #56D294
split-complementary
#5656D2 #D29456 #94D256
monochromatic
#252589 #3131B9 #5656D2 #8686DF #B7B7EC

Accessibility & contrast

On white

5.74
#5656D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5656D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5656D2
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5656D2#FFFFFF#000000##FFFFFF
##5656D21.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD6
Deuteranopia (green-blind)
#0061CF
Tritanopia (blue-blind)
#00748C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5656d2;
/* rgb */ color: rgb(86, 86, 210);
/* oklch */ color: oklch(52.5% 0.186 277.9);
Tailwind
colors: {
  custom: {
    50: '#9186e1',
    500: '#5656d2',
    950: '#000000',
  },
}
SCSS
$custom: #5656d2;
$custom-light: #9186e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5656d2",
  "rgb": {
    "r": 86,
    "g": 86,
    "b": 210
  },
  "hsl": {
    "h": 240,
    "s": 57.944,
    "l": 58.039
  },
  "oklch": {
    "l": 0.52491,
    "c": 0.18618,
    "h": 277.9
  },
  "luminance": 0.13287
}

Semantic roles & 50–950 ramp

primary
#5656D2
secondary
#DBDBA9
accent
#E147E1
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5656D2

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

Preview Lab → · Contrast checker → · Palette generator →

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