#5345C8#5345C8

#5345C8 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.6% C 0.195 H 281.2°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#5345C8
RGBrgb(83, 69, 200)
HSLhsl(246, 54%, 53%)
HSVhsv(246, 66%, 78%)
CMYKcmyk(58.5%, 65.5%, 0%, 21.6%)
CIE-LABlab(38.31, 42.65, -66.37)
CIE-LCHlch(38.31, 78.89, 302.72°)
OKLaboklab(48.62% 0.0377 -0.191)
OKLCHoklch(48.62% 0.195 281.2)
XYZxyz(16.1175, 10.2643, 55.7643)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5345C8 #BAC845
analogous
#4579C8 #5345C8 #9445C8
triadic
#5345C8 #C85345 #45C853
tetradic
#5345C8 #C84579 #BAC845 #45C894
square
#5345C8 #C84579 #BAC845 #45C894
split-complementary
#5345C8 #C89445 #79C845
monochromatic
#2A2171 #3B2FA0 #5345C8 #7F74D6 #AAA3E4

Accessibility & contrast

On white

6.88
#5345C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5345C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5345C8
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5345C8#FFFFFF#000000##FFFFFF
##5345C81.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#0055C5
Tritanopia (blue-blind)
#036680
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5345c8;
/* rgb */ color: rgb(83, 69, 200);
/* oklch */ color: oklch(48.6% 0.195 281.2);
Tailwind
colors: {
  custom: {
    50: '#8f7ada',
    500: '#5345c8',
    950: '#000000',
  },
}
SCSS
$custom: #5345c8;
$custom-light: #8f7ada;
$custom-dark: #000000;
JSON
{
  "hex": "#5345c8",
  "rgb": {
    "r": 83,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 246.412,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48621,
    "c": 0.19469,
    "h": 281.2
  },
  "luminance": 0.10265
}

Semantic roles & 50–950 ramp

primary
#5345C8
secondary
#CBD198
accent
#DE4ACE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5345C8

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

Preview Lab → · Contrast checker → · Palette generator →

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