#5162D3#5162D3

#5162D3 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.4% C 0.174 H 272.8°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5162D3
RGBrgb(81, 98, 211)
HSLhsl(232, 60%, 57%)
HSVhsv(232, 62%, 83%)
CMYKcmyk(61.6%, 53.6%, 0%, 17.3%)
CIE-LABlab(45.89, 28.21, -60.41)
CIE-LCHlch(45.89, 66.67, 295.03°)
OKLaboklab(54.44% 0.0086 -0.1733)
OKLCHoklch(54.44% 0.174 272.8)
XYZxyz(19.5150, 15.1862, 63.5182)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5162D3 #D3C251
analogous
#51A3D3 #5162D3 #8151D3
triadic
#5162D3 #D35162 #62D351
tetradic
#5162D3 #D351A3 #D3C251 #51D381
square
#5162D3 #D351A3 #D3C251 #51D381
split-complementary
#5162D3 #D38151 #A3D351
monochromatic
#222F87 #2F41B8 #5162D3 #828EDF #B3BAEC

Accessibility & contrast

On white

5.20
#5162D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#5162D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5162D3
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5162D3#FFFFFF#000000##FFFFFF
##5162D31.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1573D7
Deuteranopia (green-blind)
#0067D1
Tritanopia (blue-blind)
#007D91
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5162d3;
/* rgb */ color: rgb(81, 98, 211);
/* oklch */ color: oklch(54.4% 0.174 272.8);
Tailwind
colors: {
  custom: {
    50: '#8e8ee1',
    500: '#5162d3',
    950: '#000000',
  },
}
SCSS
$custom: #5162d3;
$custom-light: #8e8ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#5162d3",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 211
  },
  "hsl": {
    "h": 232.154,
    "s": 59.633,
    "l": 57.255
  },
  "oklch": {
    "l": 0.54438,
    "c": 0.17354,
    "h": 272.8
  },
  "luminance": 0.15188
}

Semantic roles & 50–950 ramp

primary
#5162D3
secondary
#DAD3A6
accent
#CE45E3
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5162D3

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

Preview Lab → · Contrast checker → · Palette generator →

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