#5342A9#5342A9

#5342A9 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.6% C 0.158 H 285.8°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5342A9
RGBrgb(83, 66, 169)
HSLhsl(250, 44%, 46%)
HSVhsv(250, 61%, 66%)
CMYKcmyk(50.9%, 60.9%, 0%, 33.7%)
CIE-LABlab(35.20, 34.75, -53.17)
CIE-LCHlch(35.20, 63.52, 303.17°)
OKLaboklab(45.59% 0.0432 -0.1522)
OKLCHoklch(45.59% 0.158 285.8)
XYZxyz(12.6748, 8.5994, 38.5204)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342A9 #98A942
analogous
#4264A9 #5342A9 #8642A9
triadic
#5342A9 #A95342 #42A953
tetradic
#5342A9 #A94264 #98A942 #42A986
square
#5342A9 #A94264 #98A942 #42A986
split-complementary
#5342A9 #A98642 #64A942
monochromatic
#282051 #3D317D #5342A9 #7565C3 #9C91D4

Accessibility & contrast

On white

7.72
#5342A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5342A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5342A9
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342A9#FFFFFF#000000##FFFFFF
##5342A91.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AC
Deuteranopia (green-blind)
#0050A7
Tritanopia (blue-blind)
#335A6F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5342a9;
/* rgb */ color: rgb(83, 66, 169);
/* oklch */ color: oklch(45.6% 0.158 285.8);
Tailwind
colors: {
  custom: {
    50: '#8a77c3',
    500: '#5342a9',
    950: '#000000',
  },
}
SCSS
$custom: #5342a9;
$custom-light: #8a77c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5342a9",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 169
  },
  "hsl": {
    "h": 249.903,
    "s": 43.83,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45592,
    "c": 0.15824,
    "h": 285.8
  },
  "luminance": 0.086
}

Semantic roles & 50–950 ramp

primary
#5342A9
secondary
#B6C087
accent
#D454BF
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #5342A9

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

Preview Lab → · Contrast checker → · Palette generator →

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