#5340E0#5340E0

#5340E0 is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 50.0% C 0.229 H 279.5°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#5340E0
RGBrgb(83, 64, 224)
HSLhsl(247, 72%, 56%)
HSVhsv(247, 71%, 88%)
CMYKcmyk(62.9%, 71.4%, 0%, 12.2%)
CIE-LABlab(39.39, 52.85, -78.43)
CIE-LCHlch(39.39, 94.58, 303.97°)
OKLaboklab(50.03% 0.0378 -0.2263)
OKLCHoklch(50.03% 0.229 279.5)
XYZxyz(18.8509, 10.8861, 71.6144)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340E0 #CDE040
analogous
#407DE0 #5340E0 #A340E0
triadic
#5340E0 #E05340 #40E053
tetradic
#5340E0 #E0407D #CDE040 #40E0A3
square
#5340E0 #E0407D #CDE040 #40E0A3
split-complementary
#5340E0 #E0A340 #7DE040
monochromatic
#25178E #3320C3 #5340E0 #8275E9 #B2A9F1

Accessibility & contrast

On white

6.61
#5340E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5340E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5340E0
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340E0#FFFFFF#000000##FFFFFF
##5340E01.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E5
Deuteranopia (green-blind)
#0056DD
Tritanopia (blue-blind)
#006C8C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5340e0;
/* rgb */ color: rgb(83, 64, 224);
/* oklch */ color: oklch(50.0% 0.229 279.5);
Tailwind
colors: {
  custom: {
    50: '#9477eb',
    500: '#5340e0',
    950: '#000000',
  },
}
SCSS
$custom: #5340e0;
$custom-light: #9477eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5340e0",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 224
  },
  "hsl": {
    "h": 247.125,
    "s": 72.072,
    "l": 56.471
  },
  "oklch": {
    "l": 0.50034,
    "c": 0.22946,
    "h": 279.5
  },
  "luminance": 0.10888
}

Semantic roles & 50–950 ramp

primary
#5340E0
secondary
#D7DF9D
accent
#EF39D9
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5340E0

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

Preview Lab → · Contrast checker → · Palette generator →

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