#5162D7#5162D7

#5162D7 is a mid, vivid blue. Relative luminance 0.154; OKLCH L 54.7% C 0.179 H 272.8°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5162D7
RGBrgb(81, 98, 215)
HSLhsl(232, 63%, 58%)
HSVhsv(232, 62%, 84%)
CMYKcmyk(62.3%, 54.4%, 0%, 15.7%)
CIE-LABlab(46.16, 29.56, -62.25)
CIE-LCHlch(46.16, 68.91, 295.41°)
OKLaboklab(54.73% 0.0088 -0.1787)
OKLCHoklch(54.73% 0.179 272.8)
XYZxyz(20.0227, 15.3893, 66.1921)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5162D7 #D7C651
analogous
#51A5D7 #5162D7 #8351D7
triadic
#5162D7 #D75162 #62D751
tetradic
#5162D7 #D751A5 #D7C651 #51D783
square
#5162D7 #D751A5 #D7C651 #51D783
split-complementary
#5162D7 #D78351 #A5D751
monochromatic
#202E8D #2C3FBF #5162D7 #838FE2 #B5BCEE

Accessibility & contrast

On white

5.15
#5162D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#5162D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5162D7
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5162D7#FFFFFF#000000##FFFFFF
##5162D71.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0673DB
Deuteranopia (green-blind)
#0068D5
Tritanopia (blue-blind)
#007E93
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5162d7;
/* rgb */ color: rgb(81, 98, 215);
/* oklch */ color: oklch(54.7% 0.179 272.8);
Tailwind
colors: {
  custom: {
    50: '#8f8ee4',
    500: '#5162d7',
    950: '#000000',
  },
}
SCSS
$custom: #5162d7;
$custom-light: #8f8ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#5162d7",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 215
  },
  "hsl": {
    "h": 232.388,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.54731,
    "c": 0.17895,
    "h": 272.8
  },
  "luminance": 0.15391
}

Semantic roles & 50–950 ramp

primary
#5162D7
secondary
#DDD6A7
accent
#D142E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5162D7

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

Preview Lab → · Contrast checker → · Palette generator →

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