#5956CC#5956CC

#5956CC is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.2% C 0.178 H 279.4°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#5956CC
RGBrgb(89, 86, 204)
HSLhsl(242, 54%, 57%)
HSVhsv(242, 58%, 80%)
CMYKcmyk(56.4%, 57.8%, 0%, 20%)
CIE-LABlab(42.97, 34.76, -61.09)
CIE-LCHlch(42.97, 70.29, 299.64°)
OKLaboklab(52.25% 0.0291 -0.1752)
OKLCHoklch(52.25% 0.178 279.4)
XYZxyz(18.3433, 13.1378, 58.6843)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5956CC #C9CC56
analogous
#568ECC #5956CC #9456CC
triadic
#5956CC #CC5956 #56CC59
tetradic
#5956CC #CC568E #C9CC56 #56CC94
square
#5956CC #CC568E #C9CC56 #56CC94
split-complementary
#5956CC #CC9456 #8ECC56
monochromatic
#292781 #3835B0 #5956CC #8785DA #B5B4E8

Accessibility & contrast

On white

5.79
#5956CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#5956CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5956CC
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5956CC#FFFFFF#000000##FFFFFF
##5956CC1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#0061CA
Tritanopia (blue-blind)
#1A7289
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5956cc;
/* rgb */ color: rgb(89, 86, 204);
/* oklch */ color: oklch(52.2% 0.178 279.4);
Tailwind
colors: {
  custom: {
    50: '#9286dc',
    500: '#5956cc',
    950: '#000000',
  },
}
SCSS
$custom: #5956cc;
$custom-light: #9286dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5956cc",
  "rgb": {
    "r": 89,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 241.525,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.52246,
    "c": 0.17763,
    "h": 279.4
  },
  "luminance": 0.13139
}

Semantic roles & 50–950 ramp

primary
#5956CC
secondary
#D6D7A7
accent
#DD4BD9
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5956CC

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

Preview Lab → · Contrast checker → · Palette generator →

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