#5162D6#5162D6

#5162D6 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.7% C 0.178 H 272.8°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5162D6
RGBrgb(81, 98, 214)
HSLhsl(232, 62%, 58%)
HSVhsv(232, 62%, 84%)
CMYKcmyk(62.1%, 54.2%, 0%, 16.1%)
CIE-LABlab(46.09, 29.23, -61.79)
CIE-LCHlch(46.09, 68.35, 295.31°)
OKLaboklab(54.66% 0.0087 -0.1774)
OKLCHoklch(54.66% 0.178 272.8)
XYZxyz(19.8946, 15.3381, 65.5174)
Luminance0.1534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5162D6 #D6C551
analogous
#51A4D6 #5162D6 #8351D6
triadic
#5162D6 #D65162 #62D651
tetradic
#5162D6 #D651A4 #D6C551 #51D683
square
#5162D6 #D651A4 #D6C551 #51D683
split-complementary
#5162D6 #D68351 #A4D651
monochromatic
#212F8C #2D3FBD #5162D6 #838FE2 #B4BBED

Accessibility & contrast

On white

5.16
#5162D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#5162D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5162D6
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5162D6#FFFFFF#000000##FFFFFF
##5162D61.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B73DA
Deuteranopia (green-blind)
#0068D4
Tritanopia (blue-blind)
#007D92
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5162d6;
/* rgb */ color: rgb(81, 98, 214);
/* oklch */ color: oklch(54.7% 0.178 272.8);
Tailwind
colors: {
  custom: {
    50: '#8f8ee3',
    500: '#5162d6',
    950: '#000000',
  },
}
SCSS
$custom: #5162d6;
$custom-light: #8f8ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#5162d6",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 214
  },
  "hsl": {
    "h": 232.331,
    "s": 61.86,
    "l": 57.843
  },
  "oklch": {
    "l": 0.54658,
    "c": 0.1776,
    "h": 272.8
  },
  "luminance": 0.1534
}

Semantic roles & 50–950 ramp

primary
#5162D6
secondary
#DCD5A7
accent
#D043E5
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5162D6

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

Preview Lab → · Contrast checker → · Palette generator →

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