#5340D1#5340D1

#5340D1 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.7% C 0.212 H 281.0°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#5340D1
RGBrgb(83, 64, 209)
HSLhsl(248, 61%, 54%)
HSVhsv(248, 69%, 82%)
CMYKcmyk(60.3%, 69.4%, 0%, 18%)
CIE-LABlab(38.04, 48.28, -72.04)
CIE-LCHlch(38.04, 86.72, 303.83°)
OKLaboklab(48.66% 0.0405 -0.2076)
OKLCHoklch(48.66% 0.212 281)
XYZxyz(16.9057, 10.1080, 61.3694)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340D1 #BED140
analogous
#4075D1 #5340D1 #9B40D1
triadic
#5340D1 #D15340 #40D153
tetradic
#5340D1 #D14075 #BED140 #40D19B
square
#5340D1 #D14075 #BED140 #40D19B
split-complementary
#5340D1 #D19B40 #75D140
monochromatic
#291D79 #3A29AB #5340D1 #7F71DD #ACA3E9

Accessibility & contrast

On white

6.95
#5340D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5340D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5340D1
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340D1#FFFFFF#000000##FFFFFF
##5340D11.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5340d1;
/* rgb */ color: rgb(83, 64, 209);
/* oklch */ color: oklch(48.7% 0.212 281.0);
Tailwind
colors: {
  custom: {
    50: '#9177e0',
    500: '#5340d1',
    950: '#000000',
  },
}
SCSS
$custom: #5340d1;
$custom-light: #9177e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5340d1",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 247.862,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48658,
    "c": 0.21154,
    "h": 281
  },
  "luminance": 0.10109
}

Semantic roles & 50–950 ramp

primary
#5340D1
secondary
#CDD597
accent
#E444CF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5340D1

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

Preview Lab → · Contrast checker → · Palette generator →

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