#5342C8#5342C8

#5342C8 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 48.2% C 0.198 H 281.7°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5342C8
RGBrgb(83, 66, 200)
HSLhsl(248, 55%, 52%)
HSVhsv(248, 67%, 78%)
CMYKcmyk(58.5%, 67%, 0%, 21.6%)
CIE-LABlab(37.67, 44.38, -67.42)
CIE-LCHlch(37.67, 80.72, 303.35°)
OKLaboklab(48.16% 0.0402 -0.1941)
OKLCHoklch(48.16% 0.198 281.7)
XYZxyz(15.9376, 9.9045, 55.7043)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342C8 #B7C842
analogous
#4274C8 #5342C8 #9642C8
triadic
#5342C8 #C85342 #42C853
tetradic
#5342C8 #C84274 #B7C842 #42C896
square
#5342C8 #C84274 #B7C842 #42C896
split-complementary
#5342C8 #C89642 #74C842
monochromatic
#2A206F #3C2E9F #5342C8 #7E71D6 #A9A1E4

Accessibility & contrast

On white

7.04
#5342C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5342C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5342C8
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342C8#FFFFFF#000000##FFFFFF
##5342C81.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0054C5
Tritanopia (blue-blind)
#04657F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5342c8;
/* rgb */ color: rgb(83, 66, 200);
/* oklch */ color: oklch(48.2% 0.198 281.7);
Tailwind
colors: {
  custom: {
    50: '#8f78da',
    500: '#5342c8',
    950: '#000000',
  },
}
SCSS
$custom: #5342c8;
$custom-light: #8f78da;
$custom-dark: #000000;
JSON
{
  "hex": "#5342c8",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 247.612,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48157,
    "c": 0.19823,
    "h": 281.7
  },
  "luminance": 0.09906
}

Semantic roles & 50–950 ramp

primary
#5342C8
secondary
#C9D096
accent
#DE4ACB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5342C8

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

Preview Lab → · Contrast checker → · Palette generator →

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