#5342AF#5342AF

#5342AF is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.1% C 0.166 H 284.9°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5342AF
RGBrgb(83, 66, 175)
HSLhsl(249, 45%, 47%)
HSVhsv(249, 62%, 69%)
CMYKcmyk(52.6%, 62.3%, 0%, 31.4%)
CIE-LABlab(35.65, 36.61, -56.01)
CIE-LCHlch(35.65, 66.92, 303.17°)
OKLaboklab(46.07% 0.0428 -0.1606)
OKLCHoklch(46.07% 0.166 284.9)
XYZxyz(13.2510, 8.8299, 41.5552)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342AF #9EAF42
analogous
#4267AF #5342AF #8A42AF
triadic
#5342AF #AF5342 #42AF53
tetradic
#5342AF #AF4267 #9EAF42 #42AF8A
square
#5342AF #AF4267 #9EAF42 #42AF8A
split-complementary
#5342AF #AF8A42 #67AF42
monochromatic
#292056 #3E3183 #5342AF #7768C6 #9F95D7

Accessibility & contrast

On white

7.59
#5342AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5342AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5342AF
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342AF#FFFFFF#000000##FFFFFF
##5342AF1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B3
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#2E5C72
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5342af;
/* rgb */ color: rgb(83, 66, 175);
/* oklch */ color: oklch(46.1% 0.166 284.9);
Tailwind
colors: {
  custom: {
    50: '#8b77c8',
    500: '#5342af',
    950: '#000000',
  },
}
SCSS
$custom: #5342af;
$custom-light: #8b77c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5342af",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 249.358,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46067,
    "c": 0.16619,
    "h": 284.9
  },
  "luminance": 0.08831
}

Semantic roles & 50–950 ramp

primary
#5342AF
secondary
#BAC28A
accent
#D553C1
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5342AF

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

Preview Lab → · Contrast checker → · Palette generator →

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