#5340D9#5340D9

#5340D9 is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.4% C 0.221 H 280.2°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#5340D9
RGBrgb(83, 64, 217)
HSLhsl(247, 67%, 55%)
HSVhsv(247, 71%, 85%)
CMYKcmyk(61.8%, 70.5%, 0%, 14.9%)
CIE-LABlab(38.75, 50.72, -75.48)
CIE-LCHlch(38.75, 90.94, 303.90°)
OKLaboklab(49.39% 0.0391 -0.2177)
OKLCHoklch(49.39% 0.221 280.2)
XYZxyz(17.9211, 10.5142, 66.7172)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340D9 #C6D940
analogous
#4079D9 #5340D9 #9F40D9
triadic
#5340D9 #D95340 #40D953
tetradic
#5340D9 #D94079 #C6D940 #40D99F
square
#5340D9 #D94079 #C6D940 #40D99F
split-complementary
#5340D9 #D99F40 #79D940
monochromatic
#271A84 #3724B7 #5340D9 #8173E3 #AFA6ED

Accessibility & contrast

On white

6.77
#5340D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5340D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5340D9
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340D9#FFFFFF#000000##FFFFFF
##5340D91.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DE
Deuteranopia (green-blind)
#0055D6
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5340d9;
/* rgb */ color: rgb(83, 64, 217);
/* oklch */ color: oklch(49.4% 0.221 280.2);
Tailwind
colors: {
  custom: {
    50: '#9277e6',
    500: '#5340d9',
    950: '#000000',
  },
}
SCSS
$custom: #5340d9;
$custom-light: #9277e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5340d9",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 247.451,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49386,
    "c": 0.22116,
    "h": 280.2
  },
  "luminance": 0.10516
}

Semantic roles & 50–950 ramp

primary
#5340D9
secondary
#D3DA9A
accent
#EA3ED4
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5340D9

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

Preview Lab → · Contrast checker → · Palette generator →

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