#5162BD#5162BD

#5162BD is a mid, vivid blue. Relative luminance 0.142; OKLCH L 52.9% C 0.143 H 272.6°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5162BD
RGBrgb(81, 98, 189)
HSLhsl(231, 45%, 53%)
HSVhsv(231, 57%, 74%)
CMYKcmyk(57.1%, 48.1%, 0%, 25.9%)
CIE-LABlab(44.46, 20.80, -50.04)
CIE-LCHlch(44.46, 54.19, 292.58°)
OKLaboklab(52.9% 0.0066 -0.1428)
OKLCHoklch(52.9% 0.143 272.6)
XYZxyz(16.9433, 14.1576, 49.9741)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5162BD #BDAC51
analogous
#5198BD #5162BD #7651BD
triadic
#5162BD #BD5162 #62BD51
tetradic
#5162BD #BD5198 #BDAC51 #51BD76
square
#5162BD #BD5198 #BDAC51 #51BD76
split-complementary
#5162BD #BD7651 #98BD51
monochromatic
#29336B #394897 #5162BD #7D8ACE #AAB2DF

Accessibility & contrast

On white

5.48
#5162BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5162BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5162BD
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5162BD#FFFFFF#000000##FFFFFF
##5162BD1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366EC0
Deuteranopia (green-blind)
#2665BB
Tritanopia (blue-blind)
#0A7686
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5162bd;
/* rgb */ color: rgb(81, 98, 189);
/* oklch */ color: oklch(52.9% 0.143 272.6);
Tailwind
colors: {
  custom: {
    50: '#8a8ed1',
    500: '#5162bd',
    950: '#000000',
  },
}
SCSS
$custom: #5162bd;
$custom-light: #8a8ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#5162bd",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 189
  },
  "hsl": {
    "h": 230.556,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52901,
    "c": 0.14297,
    "h": 272.6
  },
  "luminance": 0.14159
}

Semantic roles & 50–950 ramp

primary
#5162BD
secondary
#CCC59E
accent
#C053D5
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0D0C14
muted
#7D7D82

Preview Lab

Preview with #5162BD

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

Preview Lab → · Contrast checker → · Palette generator →

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