#5162CB#5162CB

#5162CB is a mid, vivid blue. Relative luminance 0.148; OKLCH L 53.9% C 0.163 H 272.8°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#5162CB
RGBrgb(81, 98, 203)
HSLhsl(232, 54%, 56%)
HSVhsv(232, 60%, 80%)
CMYKcmyk(60.1%, 51.7%, 0%, 20.4%)
CIE-LABlab(45.35, 25.51, -56.69)
CIE-LCHlch(45.35, 62.16, 294.23°)
OKLaboklab(53.86% 0.008 -0.1624)
OKLCHoklch(53.86% 0.163 272.8)
XYZxyz(18.5370, 14.7950, 58.3672)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5162CB #CBBA51
analogous
#519FCB #5162CB #7D51CB
triadic
#5162CB #CB5162 #62CB51
tetradic
#5162CB #CB519F #CBBA51 #51CB7D
square
#5162CB #CB519F #CBBA51 #51CB7D
split-complementary
#5162CB #CB7D51 #9FCB51
monochromatic
#25317C #3344AC #5162CB #808DD9 #AFB7E7

Accessibility & contrast

On white

5.30
#5162CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#5162CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5162CB
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5162CB#FFFFFF#000000##FFFFFF
##5162CB1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2571CF
Deuteranopia (green-blind)
#0066C9
Tritanopia (blue-blind)
#007A8D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5162cb;
/* rgb */ color: rgb(81, 98, 203);
/* oklch */ color: oklch(53.9% 0.163 272.8);
Tailwind
colors: {
  custom: {
    50: '#8d8edb',
    500: '#5162cb',
    950: '#000000',
  },
}
SCSS
$custom: #5162cb;
$custom-light: #8d8edb;
$custom-dark: #000000;
JSON
{
  "hex": "#5162cb",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 203
  },
  "hsl": {
    "h": 231.639,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.53864,
    "c": 0.16258,
    "h": 272.8
  },
  "luminance": 0.14796
}

Semantic roles & 50–950 ramp

primary
#5162CB
secondary
#D5CEA3
accent
#C94ADD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5162CB

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

Preview Lab → · Contrast checker → · Palette generator →

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