#5340D3#5340D3

#5340D3 is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.8% C 0.214 H 280.8°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5340D3
RGBrgb(83, 64, 211)
HSLhsl(248, 63%, 54%)
HSVhsv(248, 70%, 83%)
CMYKcmyk(60.7%, 69.7%, 0%, 17.3%)
CIE-LABlab(38.21, 48.89, -72.91)
CIE-LCHlch(38.21, 87.78, 303.85°)
OKLaboklab(48.84% 0.0401 -0.2102)
OKLCHoklch(48.84% 0.214 280.8)
XYZxyz(17.1548, 10.2077, 62.6817)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340D3 #C0D340
analogous
#4077D3 #5340D3 #9D40D3
triadic
#5340D3 #D35340 #40D353
tetradic
#5340D3 #D34077 #C0D340 #40D39D
square
#5340D3 #D34077 #C0D340 #40D39D
split-complementary
#5340D3 #D39D40 #77D340
monochromatic
#291D7C #3928AE #5340D3 #8072DE #ADA3EA

Accessibility & contrast

On white

6.90
#5340D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5340D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5340D3
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340D3#FFFFFF#000000##FFFFFF
##5340D31.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD7
Deuteranopia (green-blind)
#0054D0
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5340d3;
/* rgb */ color: rgb(83, 64, 211);
/* oklch */ color: oklch(48.8% 0.214 280.8);
Tailwind
colors: {
  custom: {
    50: '#9177e2',
    500: '#5340d3',
    950: '#000000',
  },
}
SCSS
$custom: #5340d3;
$custom-light: #9177e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5340d3",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 247.755,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.48839,
    "c": 0.21396,
    "h": 280.8
  },
  "luminance": 0.10209
}

Semantic roles & 50–950 ramp

primary
#5340D3
secondary
#CFD798
accent
#E642D0
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0915
muted
#7E7B84

Preview Lab

Preview with #5340D3

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

Preview Lab → · Contrast checker → · Palette generator →

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