#5340BF#5340BF

#5340BF is a mid, vivid blue. Relative luminance 0.093; OKLCH L 47.1% C 0.189 H 283.2°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5340BF
RGBrgb(83, 64, 191)
HSLhsl(249, 50%, 50%)
HSVhsv(249, 66%, 75%)
CMYKcmyk(56.5%, 66.5%, 0%, 25.1%)
CIE-LABlab(36.49, 42.75, -64.09)
CIE-LCHlch(36.49, 77.04, 303.70°)
OKLaboklab(47.07% 0.0432 -0.1843)
OKLCHoklch(47.07% 0.189 283.2)
XYZxyz(14.8018, 9.2665, 50.2888)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340BF #ACBF40
analogous
#406DBF #5340BF #9240BF
triadic
#5340BF #BF5340 #40BF53
tetradic
#5340BF #BF406D #ACBF40 #40BF92
square
#5340BF #BF406D #ACBF40 #40BF92
split-complementary
#5340BF #BF9240 #6DBF40
monochromatic
#2B2163 #3F3191 #5340BF #7C6ECE #A69CDE

Accessibility & contrast

On white

7.36
#5340BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5340BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5340BF
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340BF#FFFFFF#000000##FFFFFF
##5340BF1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#0052BD
Tritanopia (blue-blind)
#1C607A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5340bf;
/* rgb */ color: rgb(83, 64, 191);
/* oklch */ color: oklch(47.1% 0.189 283.2);
Tailwind
colors: {
  custom: {
    50: '#8e76d3',
    500: '#5340bf',
    950: '#000000',
  },
}
SCSS
$custom: #5340bf;
$custom-light: #8e76d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5340bf",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 248.976,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.47074,
    "c": 0.18932,
    "h": 283.2
  },
  "luminance": 0.09267
}

Semantic roles & 50–950 ramp

primary
#5340BF
secondary
#C1CA91
accent
#D94EC5
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5340BF

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

Preview Lab → · Contrast checker → · Palette generator →

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