#5340C7#5340C7

#5340C7 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.8% C 0.199 H 282.2°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5340C7
RGBrgb(83, 64, 199)
HSLhsl(248, 55%, 52%)
HSVhsv(248, 68%, 78%)
CMYKcmyk(58.3%, 67.8%, 0%, 22%)
CIE-LABlab(37.17, 45.21, -67.66)
CIE-LCHlch(37.17, 81.38, 303.75°)
OKLaboklab(47.77% 0.0421 -0.1948)
OKLCHoklch(47.77% 0.199 282.2)
XYZxyz(15.7063, 9.6283, 55.0526)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340C7 #B4C740
analogous
#4071C7 #5340C7 #9640C7
triadic
#5340C7 #C75340 #40C753
tetradic
#5340C7 #C74071 #B4C740 #40C796
square
#5340C7 #C74071 #B4C740 #40C796
split-complementary
#5340C7 #C79640 #71C740
monochromatic
#2B206D #3D2E9C #5340C7 #7E6FD5 #A89FE3

Accessibility & contrast

On white

7.18
#5340C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5340C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5340C7
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340C7#FFFFFF#000000##FFFFFF
##5340C71.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCB
Deuteranopia (green-blind)
#0053C4
Tritanopia (blue-blind)
#08637E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5340c7;
/* rgb */ color: rgb(83, 64, 199);
/* oklch */ color: oklch(47.8% 0.199 282.2);
Tailwind
colors: {
  custom: {
    50: '#8f76d9',
    500: '#5340c7',
    950: '#000000',
  },
}
SCSS
$custom: #5340c7;
$custom-light: #8f76d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5340c7",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 248.444,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47768,
    "c": 0.1993,
    "h": 282.2
  },
  "luminance": 0.09629
}

Semantic roles & 50–950 ramp

primary
#5340C7
secondary
#C7CF94
accent
#DE4AC9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5340C7

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

Preview Lab → · Contrast checker → · Palette generator →

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