#5342DF#5342DF

#5342DF is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.2% C 0.226 H 279.3°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#5342DF
RGBrgb(83, 66, 223)
HSLhsl(246, 71%, 57%)
HSVhsv(246, 70%, 87%)
CMYKcmyk(62.8%, 70.4%, 0%, 12.5%)
CIE-LABlab(39.68, 51.46, -77.38)
CIE-LCHlch(39.68, 92.93, 303.63°)
OKLaboklab(50.22% 0.0366 -0.2232)
OKLCHoklch(50.22% 0.226 279.3)
XYZxyz(18.8305, 11.0617, 70.9405)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342DF #CEDF42
analogous
#4280DF #5342DF #A242DF
triadic
#5342DF #DF5342 #42DF53
tetradic
#5342DF #DF4280 #CEDF42 #42DFA2
square
#5342DF #DF4280 #CEDF42 #42DFA2
split-complementary
#5342DF #DFA242 #80DF42
monochromatic
#25188E #3321C3 #5342DF #8376E8 #B2ABF1

Accessibility & contrast

On white

6.54
#5342DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5342DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5342DF
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342DF#FFFFFF#000000##FFFFFF
##5342DF1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E4
Deuteranopia (green-blind)
#0057DC
Tritanopia (blue-blind)
#006D8C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5342df;
/* rgb */ color: rgb(83, 66, 223);
/* oklch */ color: oklch(50.2% 0.226 279.3);
Tailwind
colors: {
  custom: {
    50: '#9378ea',
    500: '#5342df',
    950: '#000000',
  },
}
SCSS
$custom: #5342df;
$custom-light: #9378ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5342df",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 246.497,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50218,
    "c": 0.22623,
    "h": 279.3
  },
  "luminance": 0.11063
}

Semantic roles & 50–950 ramp

primary
#5342DF
secondary
#D8DF9E
accent
#EE3ADA
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5342DF

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

Preview Lab → · Contrast checker → · Palette generator →

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