#5345BA#5345BA

#5345BA is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.5% C 0.177 H 282.8°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#5345BA
RGBrgb(83, 69, 186)
HSLhsl(247, 46%, 50%)
HSVhsv(247, 63%, 73%)
CMYKcmyk(55.4%, 62.9%, 0%, 27.1%)
CIE-LABlab(37.19, 38.25, -60.02)
CIE-LCHlch(37.19, 71.17, 302.51°)
OKLaboklab(47.45% 0.039 -0.1724)
OKLCHoklch(47.45% 0.177 282.8)
XYZxyz(14.5556, 9.6395, 47.5385)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5345BA #ACBA45
analogous
#4572BA #5345BA #8D45BA
triadic
#5345BA #BA5345 #45BA53
tetradic
#5345BA #BA4572 #ACBA45 #45BA8D
square
#5345BA #BA4572 #ACBA45 #45BA8D
split-complementary
#5345BA #BA8D45 #72BA45
monochromatic
#2B2461 #3F348D #5345BA #7C72CB #A69EDB

Accessibility & contrast

On white

7.17
#5345BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5345BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5345BA
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5345BA#FFFFFF#000000##FFFFFF
##5345BA1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#226279
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5345ba;
/* rgb */ color: rgb(83, 69, 186);
/* oklch */ color: oklch(47.5% 0.177 282.8);
Tailwind
colors: {
  custom: {
    50: '#8d79d0',
    500: '#5345ba',
    950: '#000000',
  },
}
SCSS
$custom: #5345ba;
$custom-light: #8d79d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5345ba",
  "rgb": {
    "r": 83,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 247.179,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.47453,
    "c": 0.17672,
    "h": 282.8
  },
  "luminance": 0.0964
}

Semantic roles & 50–950 ramp

primary
#5345BA
secondary
#C1C893
accent
#D652C6
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5345BA

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

Preview Lab → · Contrast checker → · Palette generator →

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