#5345E4#5345E4

#5345E4 is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 51.1% C 0.229 H 278.5°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#5345E4
RGBrgb(83, 69, 228)
HSLhsl(245, 75%, 58%)
HSVhsv(245, 70%, 89%)
CMYKcmyk(63.6%, 69.7%, 0%, 10.6%)
CIE-LABlab(40.73, 51.36, -78.51)
CIE-LCHlch(40.73, 93.82, 303.19°)
OKLaboklab(51.1% 0.0337 -0.2266)
OKLCHoklch(51.1% 0.229 278.5)
XYZxyz(19.6945, 11.6951, 74.6033)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5345E4 #D6E445
analogous
#4586E4 #5345E4 #A245E4
triadic
#5345E4 #E45345 #45E453
tetradic
#5345E4 #E44586 #D6E445 #45E4A2
square
#5345E4 #E44586 #D6E445 #45E4A2
split-complementary
#5345E4 #E4A245 #86E445
monochromatic
#221698 #2D1ECE #5345E4 #847AEC #B6B0F4

Accessibility & contrast

On white

6.29
#5345E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5345E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5345E4
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5345E4#FFFFFF#000000##FFFFFF
##5345E41.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E9
Deuteranopia (green-blind)
#0059E1
Tritanopia (blue-blind)
#007090
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5345e4;
/* rgb */ color: rgb(83, 69, 228);
/* oklch */ color: oklch(51.1% 0.229 278.5);
Tailwind
colors: {
  custom: {
    50: '#947bee',
    500: '#5345e4',
    950: '#000000',
  },
}
SCSS
$custom: #5345e4;
$custom-light: #947bee;
$custom-dark: #000000;
JSON
{
  "hex": "#5345e4",
  "rgb": {
    "r": 83,
    "g": 69,
    "b": 228
  },
  "hsl": {
    "h": 245.283,
    "s": 74.648,
    "l": 58.235
  },
  "oklch": {
    "l": 0.511,
    "c": 0.22908,
    "h": 278.5
  },
  "luminance": 0.11697
}

Semantic roles & 50–950 ramp

primary
#5345E4
secondary
#DCE2A3
accent
#F137E1
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0917
muted
#7E7B85

Preview Lab

Preview with #5345E4

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

Preview Lab → · Contrast checker → · Palette generator →

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