#5340BA#5340BA

#5340BA is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.6% C 0.183 H 283.8°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#5340BA
RGBrgb(83, 64, 186)
HSLhsl(249, 49%, 49%)
HSVhsv(249, 66%, 73%)
CMYKcmyk(55.4%, 65.6%, 0%, 27.1%)
CIE-LABlab(36.08, 41.20, -61.83)
CIE-LCHlch(36.08, 74.30, 303.68°)
OKLaboklab(46.65% 0.0438 -0.1777)
OKLCHoklch(46.65% 0.183 283.8)
XYZxyz(14.2609, 9.0501, 47.4402)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340BA #A7BA40
analogous
#406ABA #5340BA #9040BA
triadic
#5340BA #BA5340 #40BA53
tetradic
#5340BA #BA406A #A7BA40 #40BA90
square
#5340BA #BA406A #A7BA40 #40BA90
split-complementary
#5340BA #BA9040 #6ABA40
monochromatic
#2A215F #3F308C #5340BA #7A6BCC #A399DC

Accessibility & contrast

On white

7.47
#5340BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5340BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5340BA
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340BA#FFFFFF#000000##FFFFFF
##5340BA1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#0051B8
Tritanopia (blue-blind)
#235F77
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5340ba;
/* rgb */ color: rgb(83, 64, 186);
/* oklch */ color: oklch(46.6% 0.183 283.8);
Tailwind
colors: {
  custom: {
    50: '#8d76d0',
    500: '#5340ba',
    950: '#000000',
  },
}
SCSS
$custom: #5340ba;
$custom-light: #8d76d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5340ba",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 249.344,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46648,
    "c": 0.18299,
    "h": 283.8
  },
  "luminance": 0.09051
}

Semantic roles & 50–950 ramp

primary
#5340BA
secondary
#BFC88E
accent
#D84FC3
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5340BA

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

Preview Lab → · Contrast checker → · Palette generator →

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