#5340D6#5340D6

#5340D6 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.1% C 0.218 H 280.5°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#5340D6
RGBrgb(83, 64, 214)
HSLhsl(248, 65%, 55%)
HSVhsv(248, 70%, 84%)
CMYKcmyk(61.2%, 70.1%, 0%, 16.1%)
CIE-LABlab(38.48, 49.81, -74.19)
CIE-LCHlch(38.48, 89.36, 303.87°)
OKLaboklab(49.11% 0.0396 -0.2139)
OKLCHoklch(49.11% 0.218 280.5)
XYZxyz(17.5344, 10.3595, 64.6809)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340D6 #C3D640
analogous
#4078D6 #5340D6 #9E40D6
triadic
#5340D6 #D65340 #40D653
tetradic
#5340D6 #D64078 #C3D640 #40D69E
square
#5340D6 #D64078 #C3D640 #40D69E
split-complementary
#5340D6 #D69E40 #78D640
monochromatic
#281B80 #3826B2 #5340D6 #8072E1 #AEA5EC

Accessibility & contrast

On white

6.84
#5340D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5340D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5340D6
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340D6#FFFFFF#000000##FFFFFF
##5340D61.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DA
Deuteranopia (green-blind)
#0055D3
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5340d6;
/* rgb */ color: rgb(83, 64, 214);
/* oklch */ color: oklch(49.1% 0.218 280.5);
Tailwind
colors: {
  custom: {
    50: '#9277e4',
    500: '#5340d6',
    950: '#000000',
  },
}
SCSS
$custom: #5340d6;
$custom-light: #9277e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5340d6",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 247.6,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.49112,
    "c": 0.21757,
    "h": 280.5
  },
  "luminance": 0.10361
}

Semantic roles & 50–950 ramp

primary
#5340D6
secondary
#D1D999
accent
#E840D2
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5340D6

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

Preview Lab → · Contrast checker → · Palette generator →

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