#5342D8#5342D8

#5342D8 is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.6% C 0.218 H 280.0°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5342D8
RGBrgb(83, 66, 216)
HSLhsl(247, 66%, 55%)
HSVhsv(247, 69%, 85%)
CMYKcmyk(61.6%, 69.4%, 0%, 15.3%)
CIE-LABlab(39.06, 49.32, -74.40)
CIE-LCHlch(39.06, 89.26, 303.54°)
OKLaboklab(49.58% 0.0378 -0.2145)
OKLCHoklch(49.58% 0.218 280)
XYZxyz(17.9062, 10.6920, 66.0726)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342D8 #C7D842
analogous
#427CD8 #5342D8 #9E42D8
triadic
#5342D8 #D85342 #42D853
tetradic
#5342D8 #D8427C #C7D842 #42D89E
square
#5342D8 #D8427C #C7D842 #42D89E
split-complementary
#5342D8 #D89E42 #7CD842
monochromatic
#271B84 #3626B7 #5342D8 #8175E2 #AFA7ED

Accessibility & contrast

On white

6.69
#5342D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5342D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5342D8
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342D8#FFFFFF#000000##FFFFFF
##5342D81.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DD
Deuteranopia (green-blind)
#0056D5
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5342d8;
/* rgb */ color: rgb(83, 66, 216);
/* oklch */ color: oklch(49.6% 0.218 280.0);
Tailwind
colors: {
  custom: {
    50: '#9278e5',
    500: '#5342d8',
    950: '#000000',
  },
}
SCSS
$custom: #5342d8;
$custom-light: #9278e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5342d8",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 246.8,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.49578,
    "c": 0.21784,
    "h": 280
  },
  "luminance": 0.10693
}

Semantic roles & 50–950 ramp

primary
#5342D8
secondary
#D3DA9C
accent
#E93FD6
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5342D8

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

Preview Lab → · Contrast checker → · Palette generator →

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