#5342AC#5342AC

#5342AC is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.8% C 0.162 H 285.4°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5342AC
RGBrgb(83, 66, 172)
HSLhsl(250, 45%, 47%)
HSVhsv(250, 62%, 67%)
CMYKcmyk(51.7%, 61.6%, 0%, 32.5%)
CIE-LABlab(35.43, 35.68, -54.60)
CIE-LCHlch(35.43, 65.22, 303.17°)
OKLaboklab(45.83% 0.043 -0.1564)
OKLCHoklch(45.83% 0.162 285.4)
XYZxyz(12.9597, 8.7133, 40.0207)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342AC #9BAC42
analogous
#4266AC #5342AC #8842AC
triadic
#5342AC #AC5342 #42AC53
tetradic
#5342AC #AC4266 #9BAC42 #42AC88
square
#5342AC #AC4266 #9BAC42 #42AC88
split-complementary
#5342AC #AC8842 #66AC42
monochromatic
#282054 #3E3180 #5342AC #7667C5 #9E93D6

Accessibility & contrast

On white

7.66
#5342AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5342AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5342AC
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342AC#FFFFFF#000000##FFFFFF
##5342AC1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#0050AA
Tritanopia (blue-blind)
#315B70
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5342ac;
/* rgb */ color: rgb(83, 66, 172);
/* oklch */ color: oklch(45.8% 0.162 285.4);
Tailwind
colors: {
  custom: {
    50: '#8b77c5',
    500: '#5342ac',
    950: '#000000',
  },
}
SCSS
$custom: #5342ac;
$custom-light: #8b77c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5342ac",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 249.623,
    "s": 44.538,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45828,
    "c": 0.16223,
    "h": 285.4
  },
  "luminance": 0.08714
}

Semantic roles & 50–950 ramp

primary
#5342AC
secondary
#B8C189
accent
#D454C0
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0913
muted
#7D7B82

Preview Lab

Preview with #5342AC

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

Preview Lab → · Contrast checker → · Palette generator →

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