#5342BB#5342BB

#5342BB is a mid, vivid blue. Relative luminance 0.093; OKLCH L 47.0% C 0.182 H 283.3°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5342BB
RGBrgb(83, 66, 187)
HSLhsl(248, 48%, 50%)
HSVhsv(248, 65%, 73%)
CMYKcmyk(55.6%, 64.7%, 0%, 26.7%)
CIE-LABlab(36.60, 40.34, -61.57)
CIE-LCHlch(36.60, 73.61, 303.23°)
OKLaboklab(47.05% 0.0418 -0.1769)
OKLCHoklch(47.05% 0.182 283.3)
XYZxyz(14.4824, 9.3224, 48.0403)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342BB #AABB42
analogous
#426DBB #5342BB #9042BB
triadic
#5342BB #BB5342 #42BB53
tetradic
#5342BB #BB426D #AABB42 #42BB90
square
#5342BB #BB426D #AABB42 #42BB90
split-complementary
#5342BB #BB9042 #6DBB42
monochromatic
#2B2261 #3F328E #5342BB #7B6ECC #A59CDC

Accessibility & contrast

On white

7.33
#5342BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5342BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5342BB
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342BB#FFFFFF#000000##FFFFFF
##5342BB1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#0052B9
Tritanopia (blue-blind)
#216078
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5342bb;
/* rgb */ color: rgb(83, 66, 187);
/* oklch */ color: oklch(47.0% 0.182 283.3);
Tailwind
colors: {
  custom: {
    50: '#8d77d0',
    500: '#5342bb',
    950: '#000000',
  },
}
SCSS
$custom: #5342bb;
$custom-light: #8d77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5342bb",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 248.43,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47048,
    "c": 0.18179,
    "h": 283.3
  },
  "luminance": 0.09323
}

Semantic roles & 50–950 ramp

primary
#5342BB
secondary
#C0C891
accent
#D750C4
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5342BB

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

Preview Lab → · Contrast checker → · Palette generator →

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