#5162CD#5162CD

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

Color values

HEX#5162CD
RGBrgb(81, 98, 205)
HSLhsl(232, 55%, 56%)
HSVhsv(232, 60%, 80%)
CMYKcmyk(60.5%, 52.2%, 0%, 19.6%)
CIE-LABlab(45.48, 26.18, -57.62)
CIE-LCHlch(45.48, 63.29, 294.44°)
OKLaboklab(54.01% 0.0082 -0.1651)
OKLCHoklch(54.01% 0.165 272.8)
XYZxyz(18.7768, 14.8910, 59.6305)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5162CD #CDBC51
analogous
#51A0CD #5162CD #7E51CD
triadic
#5162CD #CD5162 #62CD51
tetradic
#5162CD #CD51A0 #CDBC51 #51CD7E
square
#5162CD #CD51A0 #CDBC51 #51CD7E
split-complementary
#5162CD #CD7E51 #A0CD51
monochromatic
#25317F #3243AF #5162CD #818DDB #B0B8E8

Accessibility & contrast

On white

5.28
#5162CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#5162CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5162CD
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5162CD#FFFFFF#000000##FFFFFF
##5162CD1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2271D1
Deuteranopia (green-blind)
#0066CB
Tritanopia (blue-blind)
#007B8E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5162cd;
/* rgb */ color: rgb(81, 98, 205);
/* oklch */ color: oklch(54.0% 0.165 272.8);
Tailwind
colors: {
  custom: {
    50: '#8d8edd',
    500: '#5162cd',
    950: '#000000',
  },
}
SCSS
$custom: #5162cd;
$custom-light: #8d8edd;
$custom-dark: #000000;
JSON
{
  "hex": "#5162cd",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 205
  },
  "hsl": {
    "h": 231.774,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54006,
    "c": 0.16533,
    "h": 272.8
  },
  "luminance": 0.14892
}

Semantic roles & 50–950 ramp

primary
#5162CD
secondary
#D7CFA3
accent
#CA49DF
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5162CD

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

Preview Lab → · Contrast checker → · Palette generator →

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