#5162E0#5162E0

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

Color values

HEX#5162E0
RGBrgb(81, 98, 224)
HSLhsl(233, 70%, 60%)
HSVhsv(233, 64%, 88%)
CMYKcmyk(63.8%, 56.3%, 0%, 12.2%)
CIE-LABlab(46.80, 32.61, -66.34)
CIE-LCHlch(46.80, 73.92, 296.18°)
OKLaboklab(55.41% 0.0091 -0.1908)
OKLCHoklch(55.41% 0.191 272.7)
XYZxyz(21.2111, 15.8647, 72.4509)
Luminance0.1587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5162E0 #E0CF51
analogous
#51AAE0 #5162E0 #8751E0
triadic
#5162E0 #E05162 #62E051
tetradic
#5162E0 #E051AA #E0CF51 #51E087
square
#5162E0 #E051AA #E0CF51 #51E087
split-complementary
#5162E0 #E08751 #AAE051
monochromatic
#1C2B9B #2539CF #5162E0 #8591E9 #B9C0F3

Accessibility & contrast

On white

5.03
#5162E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#5162E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5162E0
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5162E0#FFFFFF#000000##FFFFFF
##5162E01.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E4
Deuteranopia (green-blind)
#0069DD
Tritanopia (blue-blind)
#008097
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5162e0;
/* rgb */ color: rgb(81, 98, 224);
/* oklch */ color: oklch(55.4% 0.191 272.7);
Tailwind
colors: {
  custom: {
    50: '#908eeb',
    500: '#5162e0',
    950: '#000000',
  },
}
SCSS
$custom: #5162e0;
$custom-light: #908eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#5162e0",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 224
  },
  "hsl": {
    "h": 232.867,
    "s": 69.756,
    "l": 59.804
  },
  "oklch": {
    "l": 0.55406,
    "c": 0.19099,
    "h": 272.7
  },
  "luminance": 0.15867
}

Semantic roles & 50–950 ramp

primary
#5162E0
secondary
#E2DBAB
accent
#D73BED
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5162E0

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

Preview Lab → · Contrast checker → · Palette generator →

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