#5340AB#5340AB

#5340AB is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.4% C 0.164 H 286.0°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5340AB
RGBrgb(83, 64, 171)
HSLhsl(251, 46%, 46%)
HSVhsv(251, 63%, 67%)
CMYKcmyk(51.5%, 62.6%, 0%, 32.9%)
CIE-LABlab(34.89, 36.58, -54.87)
CIE-LCHlch(34.89, 65.94, 303.69°)
OKLaboklab(45.42% 0.0452 -0.1572)
OKLCHoklch(45.42% 0.164 286)
XYZxyz(12.7492, 8.4454, 39.4785)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340AB #98AB40
analogous
#4062AB #5340AB #8840AB
triadic
#5340AB #AB5340 #40AB53
tetradic
#5340AB #AB4062 #98AB40 #40AB88
square
#5340AB #AB4062 #98AB40 #40AB88
split-complementary
#5340AB #AB8840 #62AB40
monochromatic
#281F52 #3D2F7E #5340AB #7563C5 #9C90D5

Accessibility & contrast

On white

7.81
#5340AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5340AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5340AB
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340AB#FFFFFF#000000##FFFFFF
##5340AB1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AE
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#32596F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5340ab;
/* rgb */ color: rgb(83, 64, 171);
/* oklch */ color: oklch(45.4% 0.164 286.0);
Tailwind
colors: {
  custom: {
    50: '#8b76c5',
    500: '#5340ab',
    950: '#000000',
  },
}
SCSS
$custom: #5340ab;
$custom-light: #8b76c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5340ab",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 250.654,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45415,
    "c": 0.16359,
    "h": 286
  },
  "luminance": 0.08446
}

Semantic roles & 50–950 ramp

primary
#5340AB
secondary
#B6C186
accent
#D553BE
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #5340AB

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

Preview Lab → · Contrast checker → · Palette generator →

#5340AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva