#5342D7#5342D7

#5342D7 is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.5% C 0.217 H 280.1°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5342D7
RGBrgb(83, 66, 215)
HSLhsl(247, 65%, 55%)
HSVhsv(247, 69%, 84%)
CMYKcmyk(61.4%, 69.3%, 0%, 15.7%)
CIE-LABlab(38.97, 49.01, -73.97)
CIE-LCHlch(38.97, 88.73, 303.53°)
OKLaboklab(49.49% 0.038 -0.2133)
OKLCHoklch(49.49% 0.217 280.1)
XYZxyz(17.7773, 10.6404, 65.3938)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342D7 #C6D742
analogous
#427BD7 #5342D7 #9E42D7
triadic
#5342D7 #D75342 #42D753
tetradic
#5342D7 #D7427B #C6D742 #42D79E
square
#5342D7 #D7427B #C6D742 #42D79E
split-complementary
#5342D7 #D79E42 #7BD742
monochromatic
#271C83 #3726B5 #5342D7 #8175E2 #AFA7EC

Accessibility & contrast

On white

6.71
#5342D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5342D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5342D7
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342D7#FFFFFF#000000##FFFFFF
##5342D71.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DB
Deuteranopia (green-blind)
#0056D4
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5342d7;
/* rgb */ color: rgb(83, 66, 215);
/* oklch */ color: oklch(49.5% 0.217 280.1);
Tailwind
colors: {
  custom: {
    50: '#9278e5',
    500: '#5342d7',
    950: '#000000',
  },
}
SCSS
$custom: #5342d7;
$custom-light: #9278e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5342d7",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 246.846,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49488,
    "c": 0.21664,
    "h": 280.1
  },
  "luminance": 0.10642
}

Semantic roles & 50–950 ramp

primary
#5342D7
secondary
#D3DA9B
accent
#E840D5
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5342D7

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

Preview Lab → · Contrast checker → · Palette generator →

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