#5156DB#5156DB

#5156DB is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.9% C 0.199 H 275.6°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#5156DB
RGBrgb(81, 86, 219)
HSLhsl(238, 66%, 59%)
HSVhsv(238, 63%, 86%)
CMYKcmyk(63%, 60.7%, 0%, 14.1%)
CIE-LABlab(43.53, 38.30, -68.80)
CIE-LCHlch(43.53, 78.74, 299.11°)
OKLaboklab(52.87% 0.0194 -0.1981)
OKLCHoklch(52.87% 0.199 275.6)
XYZxyz(19.5031, 13.5178, 68.5855)
Luminance0.1352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5156DB #DBD651
analogous
#519BDB #5156DB #9151DB
triadic
#5156DB #DB5156 #56DB51
tetradic
#5156DB #DB519B #DBD651 #51DB91
square
#5156DB #DB519B #DBD651 #51DB91
split-complementary
#5156DB #DB9151 #9BDB51
monochromatic
#1E2393 #292FC6 #5156DB #8487E5 #B6B9F0

Accessibility & contrast

On white

5.67
#5156DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#5156DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5156DB
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5156DB#FFFFFF#000000##FFFFFF
##5156DB1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDF
Deuteranopia (green-blind)
#0061D8
Tritanopia (blue-blind)
#007790
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5156db;
/* rgb */ color: rgb(81, 86, 219);
/* oklch */ color: oklch(52.9% 0.199 275.6);
Tailwind
colors: {
  custom: {
    50: '#9086e7',
    500: '#5156db',
    950: '#000000',
  },
}
SCSS
$custom: #5156db;
$custom-light: #9086e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5156db",
  "rgb": {
    "r": 81,
    "g": 86,
    "b": 219
  },
  "hsl": {
    "h": 237.826,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5287,
    "c": 0.19906,
    "h": 275.6
  },
  "luminance": 0.13519
}

Semantic roles & 50–950 ramp

primary
#5156DB
secondary
#DFDDA9
accent
#E33FE9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5156DB

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

Preview Lab → · Contrast checker → · Palette generator →

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