#5342EA#5342EA

#5342EA is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 51.2% C 0.239 H 278.3°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#5342EA
RGBrgb(83, 66, 234)
HSLhsl(246, 80%, 59%)
HSVhsv(246, 72%, 92%)
CMYKcmyk(64.5%, 71.8%, 0%, 8.2%)
CIE-LABlab(40.69, 54.81, -81.97)
CIE-LCHlch(40.69, 98.61, 303.77°)
OKLaboklab(51.24% 0.0346 -0.2367)
OKLCHoklch(51.24% 0.239 278.3)
XYZxyz(20.3620, 11.6743, 79.0063)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342EA #D9EA42
analogous
#4285EA #5342EA #A742EA
triadic
#5342EA #EA5342 #42EA53
tetradic
#5342EA #EA4285 #D9EA42 #42EAA7
square
#5342EA #EA4285 #D9EA42 #42EAA7
split-complementary
#5342EA #EAA742 #85EA42
monochromatic
#2012A0 #2B18D7 #5342EA #8579F0 #B7B0F6

Accessibility & contrast

On white

6.30
#5342EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5342EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5342EA
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342EA#FFFFFF#000000##FFFFFF
##5342EA1.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EF
Deuteranopia (green-blind)
#0059E7
Tritanopia (blue-blind)
#007192
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5342ea;
/* rgb */ color: rgb(83, 66, 234);
/* oklch */ color: oklch(51.2% 0.239 278.3);
Tailwind
colors: {
  custom: {
    50: '#9579f2',
    500: '#5342ea',
    950: '#000000',
  },
}
SCSS
$custom: #5342ea;
$custom-light: #9579f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5342ea",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 246.071,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.51242,
    "c": 0.23919,
    "h": 278.3
  },
  "luminance": 0.11676
}

Semantic roles & 50–950 ramp

primary
#5342EA
secondary
#DEE5A3
accent
#F631E2
background
#FAF7FF
surface
#F3EDFE
border
#CDC8D6
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5342EA

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

Preview Lab → · Contrast checker → · Palette generator →

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