#5340CC#5340CC

#5340CC is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.2% C 0.205 H 281.6°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5340CC
RGBrgb(83, 64, 204)
HSLhsl(248, 58%, 53%)
HSVhsv(248, 69%, 80%)
CMYKcmyk(59.3%, 68.6%, 0%, 20%)
CIE-LABlab(37.60, 46.75, -69.87)
CIE-LCHlch(37.60, 84.06, 303.79°)
OKLaboklab(48.21% 0.0413 -0.2013)
OKLCHoklch(48.21% 0.205 281.6)
XYZxyz(16.2963, 9.8643, 58.1603)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340CC #B9CC40
analogous
#4073CC #5340CC #9940CC
triadic
#5340CC #CC5340 #40CC53
tetradic
#5340CC #CC4073 #B9CC40 #40CC99
square
#5340CC #CC4073 #B9CC40 #40CC99
split-complementary
#5340CC #CC9940 #73CC40
monochromatic
#2A1F73 #3C2CA3 #5340CC #7E70D9 #AAA1E6

Accessibility & contrast

On white

7.06
#5340CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5340CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5340CC
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340CC#FFFFFF#000000##FFFFFF
##5340CC1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD0
Deuteranopia (green-blind)
#0053C9
Tritanopia (blue-blind)
#006581
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5340cc;
/* rgb */ color: rgb(83, 64, 204);
/* oklch */ color: oklch(48.2% 0.205 281.6);
Tailwind
colors: {
  custom: {
    50: '#9077dd',
    500: '#5340cc',
    950: '#000000',
  },
}
SCSS
$custom: #5340cc;
$custom-light: #9077dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5340cc",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 248.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.4821,
    "c": 0.20545,
    "h": 281.6
  },
  "luminance": 0.09865
}

Semantic roles & 50–950 ramp

primary
#5340CC
secondary
#CAD295
accent
#E147CC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5340CC

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

Preview Lab → · Contrast checker → · Palette generator →

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