#5656CC#5656CC

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

Color values

HEX#5656CC
RGBrgb(86, 86, 204)
HSLhsl(240, 54%, 57%)
HSVhsv(240, 58%, 80%)
CMYKcmyk(57.8%, 57.8%, 0%, 20%)
CIE-LABlab(42.75, 34.22, -61.45)
CIE-LCHlch(42.75, 70.34, 299.11°)
OKLaboklab(52.03% 0.0255 -0.1764)
OKLCHoklch(52.03% 0.178 278.2)
XYZxyz(18.0612, 12.9924, 58.6711)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5656CC #CCCC56
analogous
#5691CC #5656CC #9156CC
triadic
#5656CC #CC5656 #56CC56
tetradic
#5656CC #CC5691 #CCCC56 #56CC91
square
#5656CC #CC5691 #CCCC56 #56CC91
split-complementary
#5656CC #CC9156 #91CC56
monochromatic
#272781 #3535B0 #5656CC #8585DA #B4B4E8

Accessibility & contrast

On white

5.84
#5656CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#5656CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5656CC
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5656CC#FFFFFF#000000##FFFFFF
##5656CC1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#067289
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5656cc;
/* rgb */ color: rgb(86, 86, 204);
/* oklch */ color: oklch(52.0% 0.178 278.2);
Tailwind
colors: {
  custom: {
    50: '#9086dc',
    500: '#5656cc',
    950: '#000000',
  },
}
SCSS
$custom: #5656cc;
$custom-light: #9086dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5656cc",
  "rgb": {
    "r": 86,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 240,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.52028,
    "c": 0.17823,
    "h": 278.2
  },
  "luminance": 0.12994
}

Semantic roles & 50–950 ramp

primary
#5656CC
secondary
#D7D7A7
accent
#DD4BDD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5656CC

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

Preview Lab → · Contrast checker → · Palette generator →

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