#5E56BA#5E56BA

#5E56BA is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.3% C 0.152 H 283.2°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5E56BA
RGBrgb(94, 86, 186)
HSLhsl(245, 42%, 53%)
HSVhsv(245, 54%, 73%)
CMYKcmyk(49.5%, 53.8%, 0%, 27.1%)
CIE-LABlab(42.12, 30.10, -51.99)
CIE-LCHlch(42.12, 60.07, 300.07°)
OKLaboklab(51.32% 0.0349 -0.1483)
OKLCHoklch(51.32% 0.152 283.2)
XYZxyz(16.8041, 12.5796, 47.9875)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E56BA #B2BA56
analogous
#5680BA #5E56BA #9056BA
triadic
#5E56BA #BA5E56 #56BA5E
tetradic
#5E56BA #BA5680 #B2BA56 #56BA90
square
#5E56BA #BA5680 #B2BA56 #56BA90
split-complementary
#5E56BA #BA9056 #80BA56
monochromatic
#302B6A #443D96 #5E56BA #8781CC #B1ADDD

Accessibility & contrast

On white

5.97
#5E56BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5E56BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E56BA
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E56BA#FFFFFF#000000##FFFFFF
##5E56BA1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2067BD
Deuteranopia (green-blind)
#1860B8
Tritanopia (blue-blind)
#3C6C80
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5e56ba;
/* rgb */ color: rgb(94, 86, 186);
/* oklch */ color: oklch(51.3% 0.152 283.2);
Tailwind
colors: {
  custom: {
    50: '#9286cf',
    500: '#5e56ba',
    950: '#000000',
  },
}
SCSS
$custom: #5e56ba;
$custom-light: #9286cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e56ba",
  "rgb": {
    "r": 94,
    "g": 86,
    "b": 186
  },
  "hsl": {
    "h": 244.8,
    "s": 42.017,
    "l": 53.333
  },
  "oklch": {
    "l": 0.51321,
    "c": 0.15238,
    "h": 283.2
  },
  "luminance": 0.1258
}

Semantic roles & 50–950 ramp

primary
#5E56BA
secondary
#C8CBA0
accent
#D256C8
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5E56BA

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

Preview Lab → · Contrast checker → · Palette generator →

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