#5656B2#5656B2

#5656B2 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.1% C 0.142 H 280.0°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#5656B2
RGBrgb(86, 86, 178)
HSLhsl(240, 37%, 52%)
HSVhsv(240, 52%, 70%)
CMYKcmyk(51.7%, 51.7%, 0%, 30.2%)
CIE-LABlab(40.97, 25.82, -49.18)
CIE-LCHlch(40.97, 55.55, 297.70°)
OKLaboklab(50.14% 0.0246 -0.1403)
OKLCHoklch(50.14% 0.142 280)
XYZxyz(15.1989, 11.8475, 43.5968)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5656B2 #B2B256
analogous
#5684B2 #5656B2 #8456B2
triadic
#5656B2 #B25656 #56B256
tetradic
#5656B2 #B25684 #B2B256 #56B284
square
#5656B2 #B25684 #B2B256 #56B284
split-complementary
#5656B2 #B28456 #84B256
monochromatic
#2C2C61 #3F3F8B #5656B2 #8080C5 #AAAAD8

Accessibility & contrast

On white

6.23
#5656B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5656B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5656B2
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5656B2#FFFFFF#000000##FFFFFF
##5656B21.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B5
Deuteranopia (green-blind)
#1E5DB0
Tritanopia (blue-blind)
#306A7C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5656b2;
/* rgb */ color: rgb(86, 86, 178);
/* oklch */ color: oklch(50.1% 0.142 280.0);
Tailwind
colors: {
  custom: {
    50: '#8c85ca',
    500: '#5656b2',
    950: '#000000',
  },
}
SCSS
$custom: #5656b2;
$custom-light: #8c85ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5656b2",
  "rgb": {
    "r": 86,
    "g": 86,
    "b": 178
  },
  "hsl": {
    "h": 240,
    "s": 37.398,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50136,
    "c": 0.14243,
    "h": 280
  },
  "luminance": 0.11848
}

Semantic roles & 50–950 ramp

primary
#5656B2
secondary
#C6C69E
accent
#CD5ACD
background
#F9F8FC
surface
#F1EFF8
border
#CBCAD1
text
#0D0B13
muted
#7E7C82

Preview Lab

Preview with #5656B2

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

Preview Lab → · Contrast checker → · Palette generator →

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