#5162DB#5162DB

#5162DB is a mid, vivid blue. Relative luminance 0.156; OKLCH L 55.0% C 0.184 H 272.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5162DB
RGBrgb(81, 98, 219)
HSLhsl(233, 66%, 59%)
HSVhsv(233, 63%, 86%)
CMYKcmyk(63%, 55.3%, 0%, 14.1%)
CIE-LABlab(46.44, 30.92, -64.07)
CIE-LCHlch(46.44, 71.14, 295.76°)
OKLaboklab(55.03% 0.0089 -0.1841)
OKLCHoklch(55.03% 0.184 272.8)
XYZxyz(20.5429, 15.5974, 68.9321)
Luminance0.1560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5162DB #DBCA51
analogous
#51A7DB #5162DB #8551DB
triadic
#5162DB #DB5162 #62DB51
tetradic
#5162DB #DB51A7 #DBCA51 #51DB85
square
#5162DB #DB51A7 #DBCA51 #51DB85
split-complementary
#5162DB #DB8551 #A7DB51
monochromatic
#1E2D93 #293CC6 #5162DB #8490E5 #B6BEF0

Accessibility & contrast

On white

5.10
#5162DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#5162DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5162DB
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5162DB#FFFFFF#000000##FFFFFF
##5162DB1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074DF
Deuteranopia (green-blind)
#0068D9
Tritanopia (blue-blind)
#007F95
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5162db;
/* rgb */ color: rgb(81, 98, 219);
/* oklch */ color: oklch(55.0% 0.184 272.8);
Tailwind
colors: {
  custom: {
    50: '#8f8ee7',
    500: '#5162db',
    950: '#000000',
  },
}
SCSS
$custom: #5162db;
$custom-light: #8f8ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#5162db",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 219
  },
  "hsl": {
    "h": 232.609,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.55029,
    "c": 0.18433,
    "h": 272.8
  },
  "luminance": 0.15599
}

Semantic roles & 50–950 ramp

primary
#5162DB
secondary
#DFD8A9
accent
#D43FE9
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5162DB

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

Preview Lab → · Contrast checker → · Palette generator →

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