#5342B2#5342B2

#5342B2 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 46.3% C 0.170 H 284.5°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#5342B2
RGBrgb(83, 66, 178)
HSLhsl(249, 46%, 48%)
HSVhsv(249, 63%, 70%)
CMYKcmyk(53.4%, 62.9%, 0%, 30.2%)
CIE-LABlab(35.89, 37.55, -57.42)
CIE-LCHlch(35.89, 68.60, 303.18°)
OKLaboklab(46.31% 0.0426 -0.1647)
OKLCHoklch(46.31% 0.17 284.5)
XYZxyz(13.5490, 8.9490, 43.1243)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342B2 #A1B242
analogous
#4269B2 #5342B2 #8B42B2
triadic
#5342B2 #B25342 #42B253
tetradic
#5342B2 #B24269 #A1B242 #42B28B
square
#5342B2 #B24269 #A1B242 #42B28B
split-complementary
#5342B2 #B28B42 #69B242
monochromatic
#292159 #3E3185 #5342B2 #786AC8 #A096D8

Accessibility & contrast

On white

7.53
#5342B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5342B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5342B2
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342B2#FFFFFF#000000##FFFFFF
##5342B21.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#2C5D74
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5342b2;
/* rgb */ color: rgb(83, 66, 178);
/* oklch */ color: oklch(46.3% 0.170 284.5);
Tailwind
colors: {
  custom: {
    50: '#8c77ca',
    500: '#5342b2',
    950: '#000000',
  },
}
SCSS
$custom: #5342b2;
$custom-light: #8c77ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5342b2",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 249.107,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46308,
    "c": 0.17013,
    "h": 284.5
  },
  "luminance": 0.0895
}

Semantic roles & 50–950 ramp

primary
#5342B2
secondary
#BBC48C
accent
#D652C2
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5342B2

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

Preview Lab → · Contrast checker → · Palette generator →

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