#5162BF#5162BF

#5162BF is a mid, vivid blue. Relative luminance 0.142; OKLCH L 53.0% C 0.146 H 272.7°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#5162BF
RGBrgb(81, 98, 191)
HSLhsl(231, 46%, 53%)
HSVhsv(231, 58%, 75%)
CMYKcmyk(57.6%, 48.7%, 0%, 25.1%)
CIE-LABlab(44.58, 21.47, -51.00)
CIE-LCHlch(44.58, 55.33, 292.84°)
OKLaboklab(53.04% 0.0068 -0.1456)
OKLCHoklch(53.04% 0.146 272.7)
XYZxyz(17.1619, 14.2450, 51.1253)
Luminance0.1425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5162BF #BFAE51
analogous
#5199BF #5162BF #7751BF
triadic
#5162BF #BF5162 #62BF51
tetradic
#5162BF #BF5199 #BFAE51 #51BF77
square
#5162BF #BF5199 #BFAE51 #51BF77
split-complementary
#5162BF #BF7751 #99BF51
monochromatic
#28336D #39489A #5162BF #7E8ACF #AAB3E0

Accessibility & contrast

On white

5.46
#5162BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#5162BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5162BF
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5162BF#FFFFFF#000000##FFFFFF
##5162BF1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#346EC2
Deuteranopia (green-blind)
#2365BD
Tritanopia (blue-blind)
#037787
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5162bf;
/* rgb */ color: rgb(81, 98, 191);
/* oklch */ color: oklch(53.0% 0.146 272.7);
Tailwind
colors: {
  custom: {
    50: '#8b8ed3',
    500: '#5162bf',
    950: '#000000',
  },
}
SCSS
$custom: #5162bf;
$custom-light: #8b8ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#5162bf",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 191
  },
  "hsl": {
    "h": 230.727,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53035,
    "c": 0.1458,
    "h": 272.7
  },
  "luminance": 0.14246
}

Semantic roles & 50–950 ramp

primary
#5162BF
secondary
#CEC69E
accent
#C152D6
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0D0C14
muted
#7D7D83

Preview Lab

Preview with #5162BF

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

Preview Lab → · Contrast checker → · Palette generator →

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