#5342D2#5342D2

#5342D2 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.0% C 0.211 H 280.6°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5342D2
RGBrgb(83, 66, 210)
HSLhsl(247, 62%, 54%)
HSVhsv(247, 69%, 82%)
CMYKcmyk(60.5%, 68.6%, 0%, 17.6%)
CIE-LABlab(38.53, 47.47, -71.81)
CIE-LCHlch(38.53, 86.08, 303.47°)
OKLaboklab(49.04% 0.0388 -0.207)
OKLCHoklch(49.04% 0.211 280.6)
XYZxyz(17.1447, 10.3873, 62.0618)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342D2 #C1D242
analogous
#4279D2 #5342D2 #9B42D2
triadic
#5342D2 #D25342 #42D253
tetradic
#5342D2 #D24279 #C1D242 #42D29B
square
#5342D2 #D24279 #C1D242 #42D29B
split-complementary
#5342D2 #D29B42 #79D242
monochromatic
#291E7C #3929AD #5342D2 #8073DE #ADA5EA

Accessibility & contrast

On white

6.82
#5342D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5342D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5342D2
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342D2#FFFFFF#000000##FFFFFF
##5342D21.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D6
Deuteranopia (green-blind)
#0055CF
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5342d2;
/* rgb */ color: rgb(83, 66, 210);
/* oklch */ color: oklch(49.0% 0.211 280.6);
Tailwind
colors: {
  custom: {
    50: '#9178e1',
    500: '#5342d2',
    950: '#000000',
  },
}
SCSS
$custom: #5342d2;
$custom-light: #9178e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5342d2",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 247.083,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49038,
    "c": 0.21056,
    "h": 280.6
  },
  "luminance": 0.10389
}

Semantic roles & 50–950 ramp

primary
#5342D2
secondary
#CFD799
accent
#E543D2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5342D2

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

Preview Lab → · Contrast checker → · Palette generator →

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