#5B56F2#5B56F2

#5B56F2 is a mid, highly saturated blue. Relative luminance 0.153; OKLCH L 55.4% C 0.226 H 277.5°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5B56F2
RGBrgb(91, 86, 242)
HSLhsl(242, 86%, 64%)
HSVhsv(242, 64%, 95%)
CMYKcmyk(62.4%, 64.5%, 0%, 5.1%)
CIE-LABlab(46.03, 47.19, -77.71)
CIE-LCHlch(46.03, 90.92, 301.27°)
OKLaboklab(55.43% 0.0294 -0.224)
OKLCHoklch(55.43% 0.226 277.5)
XYZxyz(23.6640, 15.2886, 85.6912)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B56F2 #EDF256
analogous
#569FF2 #5B56F2 #A956F2
triadic
#5B56F2 #F25B56 #56F25B
tetradic
#5B56F2 #F2569F #EDF256 #56F2A9
square
#5B56F2 #F2569F #EDF256 #56F2A9
split-complementary
#5B56F2 #F2A956 #9FF256
monochromatic
#140FBF #241DEE #5B56F2 #928FF6 #C9C8FB

Accessibility & contrast

On white

5.17
#5B56F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#5B56F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B56F2
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B56F2#FFFFFF#000000##FFFFFF
##5B56F21.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#0066EF
Tritanopia (blue-blind)
#007E9C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5b56f2;
/* rgb */ color: rgb(91, 86, 242);
/* oklch */ color: oklch(55.4% 0.226 277.5);
Tailwind
colors: {
  custom: {
    50: '#9986f7',
    500: '#5b56f2',
    950: '#000000',
  },
}
SCSS
$custom: #5b56f2;
$custom-light: #9986f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b56f2",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 242
  },
  "hsl": {
    "h": 241.923,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.55434,
    "c": 0.22592,
    "h": 277.5
  },
  "luminance": 0.15291
}

Semantic roles & 50–950 ramp

primary
#5B56F2
secondary
#EBEDB7
accent
#E203DB
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B56F2

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

Preview Lab → · Contrast checker → · Palette generator →

#5B56F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva