#5340D4#5340D4

#5340D4 is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 48.9% C 0.215 H 280.7°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#5340D4
RGBrgb(83, 64, 212)
HSLhsl(248, 63%, 54%)
HSVhsv(248, 70%, 83%)
CMYKcmyk(60.8%, 69.8%, 0%, 16.9%)
CIE-LABlab(38.30, 49.20, -73.34)
CIE-LCHlch(38.30, 88.31, 303.85°)
OKLaboklab(48.93% 0.04 -0.2114)
OKLCHoklch(48.93% 0.215 280.7)
XYZxyz(17.2806, 10.2580, 63.3440)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340D4 #C1D440
analogous
#4077D4 #5340D4 #9D40D4
triadic
#5340D4 #D45340 #40D453
tetradic
#5340D4 #D44077 #C1D440 #40D49D
square
#5340D4 #D44077 #C1D440 #40D49D
split-complementary
#5340D4 #D49D40 #77D440
monochromatic
#291C7D #3927AF #5340D4 #8072DF #ADA4EA

Accessibility & contrast

On white

6.88
#5340D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5340D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5340D4
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340D4#FFFFFF#000000##FFFFFF
##5340D41.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD8
Deuteranopia (green-blind)
#0055D1
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5340d4;
/* rgb */ color: rgb(83, 64, 212);
/* oklch */ color: oklch(48.9% 0.215 280.7);
Tailwind
colors: {
  custom: {
    50: '#9277e2',
    500: '#5340d4',
    950: '#000000',
  },
}
SCSS
$custom: #5340d4;
$custom-light: #9277e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5340d4",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 247.703,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.4893,
    "c": 0.21517,
    "h": 280.7
  },
  "luminance": 0.10259
}

Semantic roles & 50–950 ramp

primary
#5340D4
secondary
#CFD798
accent
#E642D1
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5340D4

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

Preview Lab → · Contrast checker → · Palette generator →

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