#5342AE#5342AE

#5342AE is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.0% C 0.165 H 285.1°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5342AE
RGBrgb(83, 66, 174)
HSLhsl(249, 45%, 47%)
HSVhsv(249, 62%, 68%)
CMYKcmyk(52.3%, 62.1%, 0%, 31.8%)
CIE-LABlab(35.58, 36.30, -55.54)
CIE-LCHlch(35.58, 66.35, 303.17°)
OKLaboklab(45.99% 0.0429 -0.1592)
OKLCHoklch(45.99% 0.165 285.1)
XYZxyz(13.1532, 8.7907, 41.0399)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342AE #9DAE42
analogous
#4267AE #5342AE #8942AE
triadic
#5342AE #AE5342 #42AE53
tetradic
#5342AE #AE4267 #9DAE42 #42AE89
square
#5342AE #AE4267 #9DAE42 #42AE89
split-complementary
#5342AE #AE8942 #67AE42
monochromatic
#292055 #3E3182 #5342AE #7668C6 #9E94D6

Accessibility & contrast

On white

7.61
#5342AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5342AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5342AE
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342AE#FFFFFF#000000##FFFFFF
##5342AE1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B1
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#2F5C72
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5342ae;
/* rgb */ color: rgb(83, 66, 174);
/* oklch */ color: oklch(46.0% 0.165 285.1);
Tailwind
colors: {
  custom: {
    50: '#8b77c7',
    500: '#5342ae',
    950: '#000000',
  },
}
SCSS
$custom: #5342ae;
$custom-light: #8b77c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5342ae",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 249.444,
    "s": 45,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45987,
    "c": 0.16488,
    "h": 285.1
  },
  "luminance": 0.08791
}

Semantic roles & 50–950 ramp

primary
#5342AE
secondary
#B9C28A
accent
#D553C0
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5342AE

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

Preview Lab → · Contrast checker → · Palette generator →

#5342AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva