#5345B2#5345B2

#5345B2 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.8% C 0.166 H 283.8°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#5345B2
RGBrgb(83, 69, 178)
HSLhsl(248, 44%, 48%)
HSVhsv(248, 61%, 70%)
CMYKcmyk(53.4%, 61.2%, 0%, 30.2%)
CIE-LABlab(36.57, 35.74, -56.30)
CIE-LCHlch(36.57, 66.69, 302.41°)
OKLaboklab(46.81% 0.0395 -0.1614)
OKLCHoklch(46.81% 0.166 283.8)
XYZxyz(13.7288, 9.3088, 43.1842)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5345B2 #A4B245
analogous
#456DB2 #5345B2 #8945B2
triadic
#5345B2 #B25345 #45B253
tetradic
#5345B2 #B2456D #A4B245 #45B289
square
#5345B2 #B2456D #A4B245 #45B289
split-complementary
#5345B2 #B28945 #6DB245
monochromatic
#2A235A #3E3486 #5345B2 #796EC7 #A29AD8

Accessibility & contrast

On white

7.34
#5345B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5345B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5345B2
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5345B2#FFFFFF#000000##FFFFFF
##5345B21.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#2B5F75
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5345b2;
/* rgb */ color: rgb(83, 69, 178);
/* oklch */ color: oklch(46.8% 0.166 283.8);
Tailwind
colors: {
  custom: {
    50: '#8c79ca',
    500: '#5345b2',
    950: '#000000',
  },
}
SCSS
$custom: #5345b2;
$custom-light: #8c79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5345b2",
  "rgb": {
    "r": 83,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 247.706,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4681,
    "c": 0.16619,
    "h": 283.8
  },
  "luminance": 0.0931
}

Semantic roles & 50–950 ramp

primary
#5345B2
secondary
#BDC48F
accent
#D454C3
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5345B2

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

Preview Lab → · Contrast checker → · Palette generator →

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