#5342D4#5342D4

#5342D4 is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.2% C 0.213 H 280.4°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#5342D4
RGBrgb(83, 66, 212)
HSLhsl(247, 63%, 55%)
HSVhsv(247, 69%, 83%)
CMYKcmyk(60.8%, 68.9%, 0%, 16.9%)
CIE-LABlab(38.70, 48.09, -72.68)
CIE-LCHlch(38.70, 87.15, 303.49°)
OKLaboklab(49.22% 0.0385 -0.2095)
OKLCHoklch(49.22% 0.213 280.4)
XYZxyz(17.3954, 10.4876, 63.3822)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342D4 #C3D442
analogous
#427AD4 #5342D4 #9C42D4
triadic
#5342D4 #D45342 #42D453
tetradic
#5342D4 #D4427A #C3D442 #42D49C
square
#5342D4 #D4427A #C3D442 #42D49C
split-complementary
#5342D4 #D49C42 #7AD442
monochromatic
#281D7F #3828B1 #5342D4 #8074DF #AEA6EB

Accessibility & contrast

On white

6.78
#5342D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5342D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5342D4
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342D4#FFFFFF#000000##FFFFFF
##5342D41.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D8
Deuteranopia (green-blind)
#0056D1
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5342d4;
/* rgb */ color: rgb(83, 66, 212);
/* oklch */ color: oklch(49.2% 0.213 280.4);
Tailwind
colors: {
  custom: {
    50: '#9178e2',
    500: '#5342d4',
    950: '#000000',
  },
}
SCSS
$custom: #5342d4;
$custom-light: #9178e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5342d4",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 246.986,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.49218,
    "c": 0.21299,
    "h": 280.4
  },
  "luminance": 0.10489
}

Semantic roles & 50–950 ramp

primary
#5342D4
secondary
#D1D89A
accent
#E642D3
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5342D4

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

Preview Lab → · Contrast checker → · Palette generator →

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