#5162E4#5162E4

#5162E4 is a mid, vivid blue. Relative luminance 0.161; OKLCH L 55.7% C 0.196 H 272.7°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#5162E4
RGBrgb(81, 98, 228)
HSLhsl(233, 73%, 61%)
HSVhsv(233, 64%, 89%)
CMYKcmyk(64.5%, 57%, 0%, 10.6%)
CIE-LABlab(47.08, 33.96, -68.13)
CIE-LCHlch(47.08, 76.12, 296.49°)
OKLaboklab(55.71% 0.0091 -0.196)
OKLCHoklch(55.71% 0.196 272.7)
XYZxyz(21.7599, 16.0842, 75.3416)
Luminance0.1609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5162E4 #E4D351
analogous
#51ABE4 #5162E4 #8951E4
triadic
#5162E4 #E45162 #62E451
tetradic
#5162E4 #E451AB #E4D351 #51E489
square
#5162E4 #E451AB #E4D351 #51E489
split-complementary
#5162E4 #E48951 #ABE451
monochromatic
#1929A2 #2136D7 #5162E4 #8692EC #BBC2F4

Accessibility & contrast

On white

4.98
#5162E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#5162E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5162E4
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5162E4#FFFFFF#000000##FFFFFF
##5162E41.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E8
Deuteranopia (green-blind)
#0069E1
Tritanopia (blue-blind)
#008299
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5162e4;
/* rgb */ color: rgb(81, 98, 228);
/* oklch */ color: oklch(55.7% 0.196 272.7);
Tailwind
colors: {
  custom: {
    50: '#918eed',
    500: '#5162e4',
    950: '#000000',
  },
}
SCSS
$custom: #5162e4;
$custom-light: #918eed;
$custom-dark: #000000;
JSON
{
  "hex": "#5162e4",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 228
  },
  "hsl": {
    "h": 233.061,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.55711,
    "c": 0.19625,
    "h": 272.7
  },
  "luminance": 0.16086
}

Semantic roles & 50–950 ramp

primary
#5162E4
secondary
#E4DEAC
accent
#BE10D5
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5162E4

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

Preview Lab → · Contrast checker → · Palette generator →

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