#5342CD#5342CD

#5342CD is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.6% C 0.204 H 281.2°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#5342CD
RGBrgb(83, 66, 205)
HSLhsl(247, 58%, 53%)
HSVhsv(247, 68%, 80%)
CMYKcmyk(59.5%, 67.8%, 0%, 19.6%)
CIE-LABlab(38.10, 45.93, -69.63)
CIE-LCHlch(38.10, 83.41, 303.41°)
OKLaboklab(48.6% 0.0395 -0.2006)
OKLCHoklch(48.6% 0.204 281.2)
XYZxyz(16.5315, 10.1421, 58.8322)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342CD #BCCD42
analogous
#4276CD #5342CD #9842CD
triadic
#5342CD #CD5342 #42CD53
tetradic
#5342CD #CD4276 #BCCD42 #42CD98
square
#5342CD #CD4276 #BCCD42 #42CD98
split-complementary
#5342CD #CD9842 #76CD42
monochromatic
#2A1F76 #3B2CA6 #5342CD #7F72DA #ABA3E7

Accessibility & contrast

On white

6.93
#5342CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5342CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5342CD
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342CD#FFFFFF#000000##FFFFFF
##5342CD1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD1
Deuteranopia (green-blind)
#0055CA
Tritanopia (blue-blind)
#006682
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5342cd;
/* rgb */ color: rgb(83, 66, 205);
/* oklch */ color: oklch(48.6% 0.204 281.2);
Tailwind
colors: {
  custom: {
    50: '#9078dd',
    500: '#5342cd',
    950: '#000000',
  },
}
SCSS
$custom: #5342cd;
$custom-light: #9078dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5342cd",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 247.338,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48595,
    "c": 0.20442,
    "h": 281.2
  },
  "luminance": 0.10143
}

Semantic roles & 50–950 ramp

primary
#5342CD
secondary
#CCD397
accent
#E146CE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5342CD

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

Preview Lab → · Contrast checker → · Palette generator →

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