#5340E2#5340E2

#5340E2 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.2% C 0.232 H 279.3°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#5340E2
RGBrgb(83, 64, 226)
HSLhsl(247, 74%, 57%)
HSVhsv(247, 72%, 89%)
CMYKcmyk(63.3%, 71.7%, 0%, 11.4%)
CIE-LABlab(39.57, 53.45, -79.27)
CIE-LCHlch(39.57, 95.61, 303.99°)
OKLaboklab(50.22% 0.0374 -0.2288)
OKLCHoklch(50.22% 0.232 279.3)
XYZxyz(19.1238, 10.9953, 73.0513)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340E2 #CFE240
analogous
#407EE2 #5340E2 #A440E2
triadic
#5340E2 #E25340 #40E253
tetradic
#5340E2 #E2407E #CFE240 #40E2A4
square
#5340E2 #E2407E #CFE240 #40E2A4
split-complementary
#5340E2 #E2A440 #7EE240
monochromatic
#251692 #321EC7 #5340E2 #8375EA #B3AAF2

Accessibility & contrast

On white

6.56
#5340E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5340E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5340E2
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340E2#FFFFFF#000000##FFFFFF
##5340E21.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E7
Deuteranopia (green-blind)
#0057DF
Tritanopia (blue-blind)
#006D8D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5340e2;
/* rgb */ color: rgb(83, 64, 226);
/* oklch */ color: oklch(50.2% 0.232 279.3);
Tailwind
colors: {
  custom: {
    50: '#9477ec',
    500: '#5340e2',
    950: '#000000',
  },
}
SCSS
$custom: #5340e2;
$custom-light: #9477ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5340e2",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 247.037,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.50221,
    "c": 0.23182,
    "h": 279.3
  },
  "luminance": 0.10997
}

Semantic roles & 50–950 ramp

primary
#5340E2
secondary
#D8E09E
accent
#F038DB
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5340E2

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

Preview Lab → · Contrast checker → · Palette generator →

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