#5A56AF#5A56AF

#5A56AF is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.2% C 0.138 H 282.3°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#5A56AF
RGBrgb(90, 86, 175)
HSLhsl(243, 36%, 51%)
HSVhsv(243, 51%, 69%)
CMYKcmyk(48.6%, 50.9%, 0%, 31.4%)
CIE-LABlab(41.09, 25.77, -47.20)
CIE-LCHlch(41.09, 53.78, 298.64°)
OKLaboklab(50.25% 0.0292 -0.1344)
OKLCHoklch(50.25% 0.138 282.3)
XYZxyz(15.2798, 11.9236, 42.0455)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A56AF #ABAF56
analogous
#567EAF #5A56AF #8656AF
triadic
#5A56AF #AF5A56 #56AF5A
tetradic
#5A56AF #AF567E #ABAF56 #56AF86
square
#5A56AF #AF567E #ABAF56 #56AF86
split-complementary
#5A56AF #AF8656 #7EAF56
monochromatic
#2F2D5E #434088 #5A56AF #8380C3 #ABA9D6

Accessibility & contrast

On white

6.20
#5A56AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#5A56AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A56AF
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A56AF#FFFFFF#000000##FFFFFF
##5A56AF1.006.203.386.20
#FFFFFF6.201.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C64B2
Deuteranopia (green-blind)
#275EAD
Tritanopia (blue-blind)
#3C697A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a56af;
/* rgb */ color: rgb(90, 86, 175);
/* oklch */ color: oklch(50.2% 0.138 282.3);
Tailwind
colors: {
  custom: {
    50: '#8e85c7',
    500: '#5a56af',
    950: '#000000',
  },
}
SCSS
$custom: #5a56af;
$custom-light: #8e85c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a56af",
  "rgb": {
    "r": 90,
    "g": 86,
    "b": 175
  },
  "hsl": {
    "h": 242.697,
    "s": 35.743,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50245,
    "c": 0.1375,
    "h": 282.3
  },
  "luminance": 0.11924
}

Semantic roles & 50–950 ramp

primary
#5A56AF
secondary
#C2C49D
accent
#CC5CC7
background
#F9F8FC
surface
#F1EFF8
border
#CBCAD1
text
#0D0B13
muted
#7E7C82

Preview Lab

Preview with #5A56AF

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

Preview Lab → · Contrast checker → · Palette generator →

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