#5342CF#5342CF

#5342CF is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.8% C 0.207 H 280.9°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#5342CF
RGBrgb(83, 66, 207)
HSLhsl(247, 59%, 54%)
HSVhsv(247, 68%, 81%)
CMYKcmyk(59.9%, 68.1%, 0%, 18.8%)
CIE-LABlab(38.27, 46.55, -70.50)
CIE-LCHlch(38.27, 84.48, 303.43°)
OKLaboklab(48.77% 0.0392 -0.2031)
OKLCHoklch(48.77% 0.207 280.9)
XYZxyz(16.7744, 10.2392, 60.1118)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342CF #BECF42
analogous
#4277CF #5342CF #9942CF
triadic
#5342CF #CF5342 #42CF53
tetradic
#5342CF #CF4277 #BECF42 #42CF99
square
#5342CF #CF4277 #BECF42 #42CF99
split-complementary
#5342CF #CF9942 #77CF42
monochromatic
#291F78 #3A2BA9 #5342CF #7F73DB #ACA4E8

Accessibility & contrast

On white

6.89
#5342CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5342CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5342CF
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342CF#FFFFFF#000000##FFFFFF
##5342CF1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD3
Deuteranopia (green-blind)
#0055CC
Tritanopia (blue-blind)
#006783
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5342cf;
/* rgb */ color: rgb(83, 66, 207);
/* oklch */ color: oklch(48.8% 0.207 280.9);
Tailwind
colors: {
  custom: {
    50: '#9078df',
    500: '#5342cf',
    950: '#000000',
  },
}
SCSS
$custom: #5342cf;
$custom-light: #9078df;
$custom-dark: #000000;
JSON
{
  "hex": "#5342cf",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 247.234,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48772,
    "c": 0.20689,
    "h": 280.9
  },
  "luminance": 0.1024
}

Semantic roles & 50–950 ramp

primary
#5342CF
secondary
#CDD598
accent
#E345D0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5342CF

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

Preview Lab → · Contrast checker → · Palette generator →

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