#5162CA#5162CA

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

Color values

HEX#5162CA
RGBrgb(81, 98, 202)
HSLhsl(232, 53%, 55%)
HSVhsv(232, 60%, 79%)
CMYKcmyk(59.9%, 51.5%, 0%, 20.8%)
CIE-LABlab(45.29, 25.17, -56.22)
CIE-LCHlch(45.29, 61.60, 294.12°)
OKLaboklab(53.79% 0.0079 -0.161)
OKLCHoklch(53.79% 0.161 272.8)
XYZxyz(18.4182, 14.7475, 57.7416)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5162CA #CAB951
analogous
#519FCA #5162CA #7C51CA
triadic
#5162CA #CA5162 #62CA51
tetradic
#5162CA #CA519F #CAB951 #51CA7C
square
#5162CA #CA519F #CAB951 #51CA7C
split-complementary
#5162CA #CA7C51 #9FCA51
monochromatic
#25327B #3444AA #5162CA #808CD8 #AFB7E7

Accessibility & contrast

On white

5.32
#5162CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#5162CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5162CA
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5162CA#FFFFFF#000000##FFFFFF
##5162CA1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2771CE
Deuteranopia (green-blind)
#0266C8
Tritanopia (blue-blind)
#007A8D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5162ca;
/* rgb */ color: rgb(81, 98, 202);
/* oklch */ color: oklch(53.8% 0.161 272.8);
Tailwind
colors: {
  custom: {
    50: '#8d8edb',
    500: '#5162ca',
    950: '#000000',
  },
}
SCSS
$custom: #5162ca;
$custom-light: #8d8edb;
$custom-dark: #000000;
JSON
{
  "hex": "#5162ca",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 202
  },
  "hsl": {
    "h": 231.57,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.53793,
    "c": 0.1612,
    "h": 272.8
  },
  "luminance": 0.14749
}

Semantic roles & 50–950 ramp

primary
#5162CA
secondary
#D5CEA2
accent
#C84BDD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5162CA

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

Preview Lab → · Contrast checker → · Palette generator →

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