#5162DE#5162DE

#5162DE is a mid, vivid blue. Relative luminance 0.158; OKLCH L 55.3% C 0.188 H 272.7°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#5162DE
RGBrgb(81, 98, 222)
HSLhsl(233, 68%, 59%)
HSVhsv(233, 64%, 87%)
CMYKcmyk(63.5%, 55.9%, 0%, 12.9%)
CIE-LABlab(46.65, 31.93, -65.43)
CIE-LCHlch(46.65, 72.81, 296.01°)
OKLaboklab(55.25% 0.009 -0.1881)
OKLCHoklch(55.25% 0.188 272.7)
XYZxyz(20.9414, 15.7568, 71.0309)
Luminance0.1576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5162DE #DECD51
analogous
#51A9DE #5162DE #8751DE
triadic
#5162DE #DE5162 #62DE51
tetradic
#5162DE #DE51A9 #DECD51 #51DE87
square
#5162DE #DE51A9 #DECD51 #51DE87
split-complementary
#5162DE #DE8751 #A9DE51
monochromatic
#1D2C98 #273ACB #5162DE #8490E8 #B8BFF2

Accessibility & contrast

On white

5.06
#5162DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#5162DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5162DE
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5162DE#FFFFFF#000000##FFFFFF
##5162DE1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E2
Deuteranopia (green-blind)
#0068DB
Tritanopia (blue-blind)
#008096
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5162de;
/* rgb */ color: rgb(81, 98, 222);
/* oklch */ color: oklch(55.3% 0.188 272.7);
Tailwind
colors: {
  custom: {
    50: '#908ee9',
    500: '#5162de',
    950: '#000000',
  },
}
SCSS
$custom: #5162de;
$custom-light: #908ee9;
$custom-dark: #000000;
JSON
{
  "hex": "#5162de",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 222
  },
  "hsl": {
    "h": 232.766,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.55254,
    "c": 0.18833,
    "h": 272.7
  },
  "luminance": 0.15759
}

Semantic roles & 50–950 ramp

primary
#5162DE
secondary
#E1DAAA
accent
#D63DEB
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5162DE

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

Preview Lab → · Contrast checker → · Palette generator →

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