#5342C0#5342C0

#5342C0 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.5% C 0.188 H 282.7°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5342C0
RGBrgb(83, 66, 192)
HSLhsl(248, 50%, 51%)
HSVhsv(248, 66%, 75%)
CMYKcmyk(56.8%, 65.6%, 0%, 24.7%)
CIE-LABlab(37.00, 41.90, -63.84)
CIE-LCHlch(37.00, 76.36, 303.27°)
OKLaboklab(47.47% 0.0413 -0.1836)
OKLCHoklch(47.47% 0.188 282.7)
XYZxyz(15.0270, 9.5403, 50.9086)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342C0 #AFC042
analogous
#4270C0 #5342C0 #9242C0
triadic
#5342C0 #C05342 #42C053
tetradic
#5342C0 #C04270 #AFC042 #42C092
square
#5342C0 #C04270 #AFC042 #42C092
split-complementary
#5342C0 #C09242 #70C042
monochromatic
#2B2266 #3E3194 #5342C0 #7D70CF #A79EDF

Accessibility & contrast

On white

7.22
#5342C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5342C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5342C0
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342C0#FFFFFF#000000##FFFFFF
##5342C01.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC4
Deuteranopia (green-blind)
#0053BE
Tritanopia (blue-blind)
#1A627B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5342c0;
/* rgb */ color: rgb(83, 66, 192);
/* oklch */ color: oklch(47.5% 0.188 282.7);
Tailwind
colors: {
  custom: {
    50: '#8e78d4',
    500: '#5342c0',
    950: '#000000',
  },
}
SCSS
$custom: #5342c0;
$custom-light: #8e78d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5342c0",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 192
  },
  "hsl": {
    "h": 248.095,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.4747,
    "c": 0.18817,
    "h": 282.7
  },
  "luminance": 0.09541
}

Semantic roles & 50–950 ramp

primary
#5342C0
secondary
#C3CB93
accent
#DA4EC7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5342C0

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

Preview Lab → · Contrast checker → · Palette generator →

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