#5345B8#5345B8

#5345B8 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.3% C 0.174 H 283.0°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5345B8
RGBrgb(83, 69, 184)
HSLhsl(247, 45%, 50%)
HSVhsv(247, 63%, 72%)
CMYKcmyk(54.9%, 62.5%, 0%, 27.8%)
CIE-LABlab(37.03, 37.62, -59.10)
CIE-LCHlch(37.03, 70.06, 302.48°)
OKLaboklab(47.29% 0.0392 -0.1696)
OKLCHoklch(47.29% 0.174 283)
XYZxyz(14.3445, 9.5551, 46.4266)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5345B8 #AAB845
analogous
#4571B8 #5345B8 #8C45B8
triadic
#5345B8 #B85345 #45B853
tetradic
#5345B8 #B84571 #AAB845 #45B88C
square
#5345B8 #B84571 #AAB845 #45B88C
split-complementary
#5345B8 #B88C45 #71B845
monochromatic
#2B245F #3F348B #5345B8 #7B71CA #A59DDA

Accessibility & contrast

On white

7.21
#5345B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5345B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5345B8
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5345B8#FFFFFF#000000##FFFFFF
##5345B81.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBC
Deuteranopia (green-blind)
#0053B6
Tritanopia (blue-blind)
#256178
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5345b8;
/* rgb */ color: rgb(83, 69, 184);
/* oklch */ color: oklch(47.3% 0.174 283.0);
Tailwind
colors: {
  custom: {
    50: '#8c79ce',
    500: '#5345b8',
    950: '#000000',
  },
}
SCSS
$custom: #5345b8;
$custom-light: #8c79ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5345b8",
  "rgb": {
    "r": 83,
    "g": 69,
    "b": 184
  },
  "hsl": {
    "h": 247.304,
    "s": 45.455,
    "l": 49.608
  },
  "oklch": {
    "l": 0.4729,
    "c": 0.17411,
    "h": 283
  },
  "luminance": 0.09556
}

Semantic roles & 50–950 ramp

primary
#5345B8
secondary
#C0C792
accent
#D553C5
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5345B8

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

Preview Lab → · Contrast checker → · Palette generator →

#5345B8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva