#5165DB#5165DB

#5165DB is a mid, vivid blue. Relative luminance 0.162; OKLCH L 55.6% C 0.181 H 272.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5165DB
RGBrgb(81, 101, 219)
HSLhsl(231, 66%, 59%)
HSVhsv(231, 63%, 86%)
CMYKcmyk(63%, 53.9%, 0%, 14.1%)
CIE-LABlab(47.20, 29.05, -62.85)
CIE-LCHlch(47.20, 69.24, 294.81°)
OKLaboklab(55.59% 0.0062 -0.1805)
OKLCHoklch(55.59% 0.181 272)
XYZxyz(20.8289, 16.1694, 69.0274)
Luminance0.1617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5165DB #DBC751
analogous
#51AADB #5165DB #8251DB
triadic
#5165DB #DB5165 #65DB51
tetradic
#5165DB #DB51AA #DBC751 #51DB82
square
#5165DB #DB51AA #DBC751 #51DB82
split-complementary
#5165DB #DB8251 #AADB51
monochromatic
#1E2F93 #2940C6 #5165DB #8492E5 #B6BFF0

Accessibility & contrast

On white

4.96
#5165DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#5165DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5165DB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5165DB#FFFFFF#000000##FFFFFF
##5165DB1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E76DF
Deuteranopia (green-blind)
#006AD9
Tritanopia (blue-blind)
#008196
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5165db;
/* rgb */ color: rgb(81, 101, 219);
/* oklch */ color: oklch(55.6% 0.181 272.0);
Tailwind
colors: {
  custom: {
    50: '#8f90e7',
    500: '#5165db',
    950: '#000000',
  },
}
SCSS
$custom: #5165db;
$custom-light: #8f90e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5165db",
  "rgb": {
    "r": 81,
    "g": 101,
    "b": 219
  },
  "hsl": {
    "h": 231.304,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.55594,
    "c": 0.1806,
    "h": 272
  },
  "luminance": 0.16171
}

Semantic roles & 50–950 ramp

primary
#5165DB
secondary
#DFD7A9
accent
#D03FE9
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5165DB

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

Preview Lab → · Contrast checker → · Palette generator →

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