#5340CD#5340CD

#5340CD is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.3% C 0.207 H 281.5°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5340CD
RGBrgb(83, 64, 205)
HSLhsl(248, 59%, 53%)
HSVhsv(248, 69%, 80%)
CMYKcmyk(59.5%, 68.8%, 0%, 19.6%)
CIE-LABlab(37.68, 47.05, -70.30)
CIE-LCHlch(37.68, 84.60, 303.79°)
OKLaboklab(48.3% 0.0411 -0.2025)
OKLCHoklch(48.3% 0.207 281.5)
XYZxyz(16.4167, 9.9124, 58.7940)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340CD #BACD40
analogous
#4074CD #5340CD #9940CD
triadic
#5340CD #CD5340 #40CD53
tetradic
#5340CD #CD4074 #BACD40 #40CD99
square
#5340CD #CD4074 #BACD40 #40CD99
split-complementary
#5340CD #CD9940 #74CD40
monochromatic
#2A1E74 #3B2BA5 #5340CD #7F71DA #AAA1E6

Accessibility & contrast

On white

7.04
#5340CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5340CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5340CD
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340CD#FFFFFF#000000##FFFFFF
##5340CD1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED1
Deuteranopia (green-blind)
#0054CA
Tritanopia (blue-blind)
#006582
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5340cd;
/* rgb */ color: rgb(83, 64, 205);
/* oklch */ color: oklch(48.3% 0.207 281.5);
Tailwind
colors: {
  custom: {
    50: '#9077dd',
    500: '#5340cd',
    950: '#000000',
  },
}
SCSS
$custom: #5340cd;
$custom-light: #9077dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5340cd",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 248.085,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48299,
    "c": 0.20667,
    "h": 281.5
  },
  "luminance": 0.09914
}

Semantic roles & 50–950 ramp

primary
#5340CD
secondary
#CBD396
accent
#E246CD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5340CD

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

Preview Lab → · Contrast checker → · Palette generator →

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