#5162E1#5162E1

#5162E1 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 55.5% C 0.192 H 272.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5162E1
RGBrgb(81, 98, 225)
HSLhsl(233, 71%, 60%)
HSVhsv(233, 64%, 88%)
CMYKcmyk(64%, 56.4%, 0%, 11.8%)
CIE-LABlab(46.87, 32.94, -66.79)
CIE-LCHlch(46.87, 74.47, 296.26°)
OKLaboklab(55.48% 0.0091 -0.1921)
OKLCHoklch(55.48% 0.192 272.7)
XYZxyz(21.3471, 15.9191, 73.1673)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5162E1 #E1D051
analogous
#51AAE1 #5162E1 #8851E1
triadic
#5162E1 #E15162 #62E151
tetradic
#5162E1 #E151AA #E1D051 #51E188
square
#5162E1 #E151AA #E1D051 #51E188
split-complementary
#5162E1 #E18851 #AAE151
monochromatic
#1B2A9D #2438D1 #5162E1 #8591EA #B9C0F3

Accessibility & contrast

On white

5.02
#5162E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5162E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5162E1
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5162E1#FFFFFF#000000##FFFFFF
##5162E11.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E5
Deuteranopia (green-blind)
#0069DE
Tritanopia (blue-blind)
#008198
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5162e1;
/* rgb */ color: rgb(81, 98, 225);
/* oklch */ color: oklch(55.5% 0.192 272.7);
Tailwind
colors: {
  custom: {
    50: '#908eeb',
    500: '#5162e1',
    950: '#000000',
  },
}
SCSS
$custom: #5162e1;
$custom-light: #908eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#5162e1",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 225
  },
  "hsl": {
    "h": 232.917,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.55482,
    "c": 0.1923,
    "h": 272.7
  },
  "luminance": 0.15921
}

Semantic roles & 50–950 ramp

primary
#5162E1
secondary
#E3DCAB
accent
#D83AED
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5162E1

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

Preview Lab → · Contrast checker → · Palette generator →

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