#5340B2#5340B2

#5340B2 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.0% C 0.173 H 285.0°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5340B2
RGBrgb(83, 64, 178)
HSLhsl(250, 47%, 47%)
HSVhsv(250, 64%, 70%)
CMYKcmyk(53.4%, 64%, 0%, 30.2%)
CIE-LABlab(35.44, 38.73, -58.15)
CIE-LCHlch(35.44, 69.87, 303.67°)
OKLaboklab(45.98% 0.0446 -0.1669)
OKLCHoklch(45.98% 0.173 285)
XYZxyz(13.4341, 8.7194, 43.0860)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340B2 #9FB240
analogous
#4066B2 #5340B2 #8C40B2
triadic
#5340B2 #B25340 #40B253
tetradic
#5340B2 #B24066 #9FB240 #40B28C
square
#5340B2 #B24066 #9FB240 #40B28C
split-complementary
#5340B2 #B28C40 #66B240
monochromatic
#292058 #3E3085 #5340B2 #7767C8 #9F94D8

Accessibility & contrast

On white

7.65
#5340B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5340B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5340B2
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340B2#FFFFFF#000000##FFFFFF
##5340B21.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#2C5C73
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5340b2;
/* rgb */ color: rgb(83, 64, 178);
/* oklch */ color: oklch(46.0% 0.173 285.0);
Tailwind
colors: {
  custom: {
    50: '#8c76ca',
    500: '#5340b2',
    950: '#000000',
  },
}
SCSS
$custom: #5340b2;
$custom-light: #8c76ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5340b2",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 250,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45982,
    "c": 0.17273,
    "h": 285
  },
  "luminance": 0.0872
}

Semantic roles & 50–950 ramp

primary
#5340B2
secondary
#BAC48A
accent
#D751C0
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5340B2

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

Preview Lab → · Contrast checker → · Palette generator →

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