#5342CB#5342CB

#5342CB is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.4% C 0.202 H 281.4°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#5342CB
RGBrgb(83, 66, 203)
HSLhsl(247, 57%, 53%)
HSVhsv(247, 67%, 80%)
CMYKcmyk(59.1%, 67.5%, 0%, 20.4%)
CIE-LABlab(37.92, 45.31, -68.75)
CIE-LCHlch(37.92, 82.34, 303.39°)
OKLaboklab(48.42% 0.0398 -0.198)
OKLCHoklch(48.42% 0.202 281.4)
XYZxyz(16.2916, 10.0461, 57.5689)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342CB #BACB42
analogous
#4276CB #5342CB #9742CB
triadic
#5342CB #CB5342 #42CB53
tetradic
#5342CB #CB4276 #BACB42 #42CB97
square
#5342CB #CB4276 #BACB42 #42CB97
split-complementary
#5342CB #CB9742 #76CB42
monochromatic
#2A2073 #3B2DA3 #5342CB #7F72D8 #AAA2E5

Accessibility & contrast

On white

6.98
#5342CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5342CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5342CB
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342CB#FFFFFF#000000##FFFFFF
##5342CB1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECF
Deuteranopia (green-blind)
#0054C8
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5342cb;
/* rgb */ color: rgb(83, 66, 203);
/* oklch */ color: oklch(48.4% 0.202 281.4);
Tailwind
colors: {
  custom: {
    50: '#9078dc',
    500: '#5342cb',
    950: '#000000',
  },
}
SCSS
$custom: #5342cb;
$custom-light: #9078dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5342cb",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 247.445,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48419,
    "c": 0.20196,
    "h": 281.4
  },
  "luminance": 0.10047
}

Semantic roles & 50–950 ramp

primary
#5342CB
secondary
#CBD297
accent
#E048CD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5342CB

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

Preview Lab → · Contrast checker → · Palette generator →

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