#5340DB#5340DB

#5340DB is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.6% C 0.224 H 280.0°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#5340DB
RGBrgb(83, 64, 219)
HSLhsl(247, 68%, 55%)
HSVhsv(247, 71%, 86%)
CMYKcmyk(62.1%, 70.8%, 0%, 14.1%)
CIE-LABlab(38.93, 51.33, -76.33)
CIE-LCHlch(38.93, 91.98, 303.92°)
OKLaboklab(49.57% 0.0387 -0.2202)
OKLCHoklch(49.57% 0.224 280)
XYZxyz(18.1828, 10.6189, 68.0956)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340DB #C8DB40
analogous
#407ADB #5340DB #A140DB
triadic
#5340DB #DB5340 #40DB53
tetradic
#5340DB #DB407A #C8DB40 #40DBA1
square
#5340DB #DB407A #C8DB40 #40DBA1
split-complementary
#5340DB #DBA140 #7ADB40
monochromatic
#271987 #3623BB #5340DB #8173E5 #B0A7EE

Accessibility & contrast

On white

6.72
#5340DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5340DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5340DB
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340DB#FFFFFF#000000##FFFFFF
##5340DB1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E0
Deuteranopia (green-blind)
#0056D8
Tritanopia (blue-blind)
#006A89
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5340db;
/* rgb */ color: rgb(83, 64, 219);
/* oklch */ color: oklch(49.6% 0.224 280.0);
Tailwind
colors: {
  custom: {
    50: '#9377e7',
    500: '#5340db',
    950: '#000000',
  },
}
SCSS
$custom: #5340db;
$custom-light: #9377e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5340db",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 247.355,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49571,
    "c": 0.22355,
    "h": 280
  },
  "luminance": 0.1062
}

Semantic roles & 50–950 ramp

primary
#5340DB
secondary
#D4DC9B
accent
#EB3DD6
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5340DB

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

Preview Lab → · Contrast checker → · Palette generator →

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