#5162CE#5162CE

#5162CE is a mid, vivid blue. Relative luminance 0.149; OKLCH L 54.1% C 0.167 H 272.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5162CE
RGBrgb(81, 98, 206)
HSLhsl(232, 56%, 56%)
HSVhsv(232, 61%, 81%)
CMYKcmyk(60.7%, 52.4%, 0%, 19.2%)
CIE-LABlab(45.55, 26.52, -58.09)
CIE-LCHlch(45.55, 63.86, 294.54°)
OKLaboklab(54.08% 0.0082 -0.1665)
OKLCHoklch(54.08% 0.167 272.8)
XYZxyz(18.8979, 14.9394, 60.2683)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5162CE #CEBD51
analogous
#51A1CE #5162CE #7F51CE
triadic
#5162CE #CE5162 #62CE51
tetradic
#5162CE #CE51A1 #CEBD51 #51CE7F
square
#5162CE #CE51A1 #CEBD51 #51CE7F
split-complementary
#5162CE #CE7F51 #A1CE51
monochromatic
#243180 #3243B0 #5162CE #818DDB #B1B8E9

Accessibility & contrast

On white

5.27
#5162CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#5162CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5162CE
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5162CE#FFFFFF#000000##FFFFFF
##5162CE1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2071D2
Deuteranopia (green-blind)
#0067CC
Tritanopia (blue-blind)
#007B8E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5162ce;
/* rgb */ color: rgb(81, 98, 206);
/* oklch */ color: oklch(54.1% 0.167 272.8);
Tailwind
colors: {
  custom: {
    50: '#8d8ede',
    500: '#5162ce',
    950: '#000000',
  },
}
SCSS
$custom: #5162ce;
$custom-light: #8d8ede;
$custom-dark: #000000;
JSON
{
  "hex": "#5162ce",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 206
  },
  "hsl": {
    "h": 231.84,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54077,
    "c": 0.16671,
    "h": 272.8
  },
  "luminance": 0.14941
}

Semantic roles & 50–950 ramp

primary
#5162CE
secondary
#D7D0A4
accent
#CB48DF
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5162CE

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

Preview Lab → · Contrast checker → · Palette generator →

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