#5340D2#5340D2

#5340D2 is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.7% C 0.213 H 280.9°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#5340D2
RGBrgb(83, 64, 210)
HSLhsl(248, 62%, 54%)
HSVhsv(248, 70%, 82%)
CMYKcmyk(60.5%, 69.5%, 0%, 17.6%)
CIE-LABlab(38.12, 48.59, -72.47)
CIE-LCHlch(38.12, 87.25, 303.84°)
OKLaboklab(48.75% 0.0403 -0.2089)
OKLCHoklch(48.75% 0.213 280.9)
XYZxyz(17.0299, 10.1577, 62.0235)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340D2 #BFD240
analogous
#4076D2 #5340D2 #9C40D2
triadic
#5340D2 #D25340 #40D253
tetradic
#5340D2 #D24076 #BFD240 #40D29C
square
#5340D2 #D24076 #BFD240 #40D29C
split-complementary
#5340D2 #D29C40 #76D240
monochromatic
#291D7B #3A29AC #5340D2 #8072DE #ACA3E9

Accessibility & contrast

On white

6.93
#5340D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5340D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5340D2
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340D2#FFFFFF#000000##FFFFFF
##5340D21.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD6
Deuteranopia (green-blind)
#0054CF
Tritanopia (blue-blind)
#006784
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5340d2;
/* rgb */ color: rgb(83, 64, 210);
/* oklch */ color: oklch(48.7% 0.213 280.9);
Tailwind
colors: {
  custom: {
    50: '#9177e1',
    500: '#5340d2',
    950: '#000000',
  },
}
SCSS
$custom: #5340d2;
$custom-light: #9177e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5340d2",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 247.808,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.48748,
    "c": 0.21275,
    "h": 280.9
  },
  "luminance": 0.10159
}

Semantic roles & 50–950 ramp

primary
#5340D2
secondary
#CED698
accent
#E543D0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5340D2

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

Preview Lab → · Contrast checker → · Palette generator →

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