#5956CA#5956CA

#5956CA is a mid, vivid blue. Relative luminance 0.130; OKLCH L 52.1% C 0.175 H 279.6°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#5956CA
RGBrgb(89, 86, 202)
HSLhsl(242, 52%, 56%)
HSVhsv(242, 57%, 79%)
CMYKcmyk(55.9%, 57.4%, 0%, 20.8%)
CIE-LABlab(42.83, 34.12, -60.17)
CIE-LCHlch(42.83, 69.17, 299.56°)
OKLaboklab(52.1% 0.0291 -0.1725)
OKLCHoklch(52.1% 0.175 279.6)
XYZxyz(18.1049, 13.0425, 57.4291)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5956CA #C7CA56
analogous
#568DCA #5956CA #9356CA
triadic
#5956CA #CA5956 #56CA59
tetradic
#5956CA #CA568D #C7CA56 #56CA93
square
#5956CA #CA568D #C7CA56 #56CA93
split-complementary
#5956CA #CA9356 #8DCA56
monochromatic
#2A287E #3936AD #5956CA #8785D9 #B5B3E7

Accessibility & contrast

On white

5.82
#5956CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5956CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5956CA
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5956CA#FFFFFF#000000##FFFFFF
##5956CA1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#0061C8
Tritanopia (blue-blind)
#1E7188
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5956ca;
/* rgb */ color: rgb(89, 86, 202);
/* oklch */ color: oklch(52.1% 0.175 279.6);
Tailwind
colors: {
  custom: {
    50: '#9186db',
    500: '#5956ca',
    950: '#000000',
  },
}
SCSS
$custom: #5956ca;
$custom-light: #9186db;
$custom-dark: #000000;
JSON
{
  "hex": "#5956ca",
  "rgb": {
    "r": 89,
    "g": 86,
    "b": 202
  },
  "hsl": {
    "h": 241.552,
    "s": 52.252,
    "l": 56.471
  },
  "oklch": {
    "l": 0.52095,
    "c": 0.17496,
    "h": 279.6
  },
  "luminance": 0.13044
}

Semantic roles & 50–950 ramp

primary
#5956CA
secondary
#D4D6A6
accent
#DC4CD8
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5956CA

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

Preview Lab → · Contrast checker → · Palette generator →

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