#5342D9#5342D9

#5342D9 is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.7% C 0.219 H 279.9°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#5342D9
RGBrgb(83, 66, 217)
HSLhsl(247, 67%, 55%)
HSVhsv(247, 70%, 85%)
CMYKcmyk(61.8%, 69.6%, 0%, 14.9%)
CIE-LABlab(39.15, 49.63, -74.83)
CIE-LCHlch(39.15, 89.79, 303.55°)
OKLaboklab(49.67% 0.0377 -0.2158)
OKLCHoklch(49.67% 0.219 279.9)
XYZxyz(18.0359, 10.7438, 66.7555)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342D9 #C8D942
analogous
#427CD9 #5342D9 #9E42D9
triadic
#5342D9 #D95342 #42D953
tetradic
#5342D9 #D9427C #C8D942 #42D99E
square
#5342D9 #D9427C #C8D942 #42D99E
split-complementary
#5342D9 #D99E42 #7CD942
monochromatic
#271B86 #3625B9 #5342D9 #8175E3 #B0A8ED

Accessibility & contrast

On white

6.67
#5342D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5342D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5342D9
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342D9#FFFFFF#000000##FFFFFF
##5342D91.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DE
Deuteranopia (green-blind)
#0056D6
Tritanopia (blue-blind)
#006B89
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5342d9;
/* rgb */ color: rgb(83, 66, 217);
/* oklch */ color: oklch(49.7% 0.219 279.9);
Tailwind
colors: {
  custom: {
    50: '#9278e6',
    500: '#5342d9',
    950: '#000000',
  },
}
SCSS
$custom: #5342d9;
$custom-light: #9278e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5342d9",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 246.755,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49669,
    "c": 0.21905,
    "h": 279.9
  },
  "luminance": 0.10745
}

Semantic roles & 50–950 ramp

primary
#5342D9
secondary
#D4DB9C
accent
#E93ED6
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5342D9

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

Preview Lab → · Contrast checker → · Palette generator →

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