#5162C8#5162C8

#5162C8 is a mid, vivid blue. Relative luminance 0.147; OKLCH L 53.7% C 0.158 H 272.8°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5162C8
RGBrgb(81, 98, 200)
HSLhsl(231, 52%, 55%)
HSVhsv(231, 60%, 78%)
CMYKcmyk(59.5%, 51%, 0%, 21.6%)
CIE-LABlab(45.16, 24.50, -55.28)
CIE-LCHlch(45.16, 60.46, 293.90°)
OKLaboklab(53.65% 0.0078 -0.1582)
OKLCHoklch(53.65% 0.158 272.8)
XYZxyz(18.1829, 14.6534, 56.5026)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5162C8 #C8B751
analogous
#519DC8 #5162C8 #7C51C8
triadic
#5162C8 #C85162 #62C851
tetradic
#5162C8 #C8519D #C8B751 #51C87C
square
#5162C8 #C8519D #C8B751 #51C87C
split-complementary
#5162C8 #C87C51 #9DC851
monochromatic
#263279 #3545A7 #5162C8 #808CD7 #AEB6E5

Accessibility & contrast

On white

5.34
#5162C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5162C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5162C8
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5162C8#FFFFFF#000000##FFFFFF
##5162C81.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A70CC
Deuteranopia (green-blind)
#0C66C6
Tritanopia (blue-blind)
#00798C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5162c8;
/* rgb */ color: rgb(81, 98, 200);
/* oklch */ color: oklch(53.7% 0.158 272.8);
Tailwind
colors: {
  custom: {
    50: '#8c8ed9',
    500: '#5162c8',
    950: '#000000',
  },
}
SCSS
$custom: #5162c8;
$custom-light: #8c8ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#5162c8",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 200
  },
  "hsl": {
    "h": 231.429,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.53653,
    "c": 0.15842,
    "h": 272.8
  },
  "luminance": 0.14655
}

Semantic roles & 50–950 ramp

primary
#5162C8
secondary
#D3CCA1
accent
#C74CDB
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5162C8

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

Preview Lab → · Contrast checker → · Palette generator →

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