#5340BD#5340BD

#5340BD is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.9% C 0.187 H 283.4°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5340BD
RGBrgb(83, 64, 189)
HSLhsl(249, 49%, 50%)
HSVhsv(249, 66%, 74%)
CMYKcmyk(56.1%, 66.1%, 0%, 25.9%)
CIE-LABlab(36.33, 42.13, -63.19)
CIE-LCHlch(36.33, 75.95, 303.69°)
OKLaboklab(46.9% 0.0434 -0.1817)
OKLCHoklch(46.9% 0.187 283.4)
XYZxyz(14.5832, 9.1790, 49.1375)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340BD #AABD40
analogous
#406CBD #5340BD #9240BD
triadic
#5340BD #BD5340 #40BD53
tetradic
#5340BD #BD406C #AABD40 #40BD92
square
#5340BD #BD406C #AABD40 #40BD92
split-complementary
#5340BD #BD9240 #6CBD40
monochromatic
#2B2162 #3F318F #5340BD #7B6DCD #A59ADD

Accessibility & contrast

On white

7.40
#5340BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5340BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5340BD
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340BD#FFFFFF#000000##FFFFFF
##5340BD1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C1
Deuteranopia (green-blind)
#0051BB
Tritanopia (blue-blind)
#1F6079
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5340bd;
/* rgb */ color: rgb(83, 64, 189);
/* oklch */ color: oklch(46.9% 0.187 283.4);
Tailwind
colors: {
  custom: {
    50: '#8e76d2',
    500: '#5340bd',
    950: '#000000',
  },
}
SCSS
$custom: #5340bd;
$custom-light: #8e76d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5340bd",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 249.12,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46903,
    "c": 0.18679,
    "h": 283.4
  },
  "luminance": 0.0918
}

Semantic roles & 50–950 ramp

primary
#5340BD
secondary
#C0C990
accent
#D94FC4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5340BD

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

Preview Lab → · Contrast checker → · Palette generator →

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