#5340BC#5340BC

#5340BC is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.8% C 0.186 H 283.6°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5340BC
RGBrgb(83, 64, 188)
HSLhsl(249, 49%, 49%)
HSVhsv(249, 66%, 74%)
CMYKcmyk(55.9%, 66%, 0%, 26.3%)
CIE-LABlab(36.24, 41.82, -62.74)
CIE-LCHlch(36.24, 75.40, 303.69°)
OKLaboklab(46.82% 0.0436 -0.1803)
OKLCHoklch(46.82% 0.186 283.6)
XYZxyz(14.4750, 9.1358, 48.5678)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340BC #A9BC40
analogous
#406BBC #5340BC #9140BC
triadic
#5340BC #BC5340 #40BC53
tetradic
#5340BC #BC406B #A9BC40 #40BC91
square
#5340BC #BC406B #A9BC40 #40BC91
split-complementary
#5340BC #BC9140 #6BBC40
monochromatic
#2B2161 #3F308E #5340BC #7B6CCD #A49ADD

Accessibility & contrast

On white

7.43
#5340BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5340BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5340BC
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340BC#FFFFFF#000000##FFFFFF
##5340BC1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#0051BA
Tritanopia (blue-blind)
#205F78
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5340bc;
/* rgb */ color: rgb(83, 64, 188);
/* oklch */ color: oklch(46.8% 0.186 283.6);
Tailwind
colors: {
  custom: {
    50: '#8d76d1',
    500: '#5340bc',
    950: '#000000',
  },
}
SCSS
$custom: #5340bc;
$custom-light: #8d76d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5340bc",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 249.194,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46818,
    "c": 0.18552,
    "h": 283.6
  },
  "luminance": 0.09137
}

Semantic roles & 50–950 ramp

primary
#5340BC
secondary
#C0C98F
accent
#D94FC4
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5340BC

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

Preview Lab → · Contrast checker → · Palette generator →

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