#5157DB#5157DB

#5157DB is a mid, vivid blue. Relative luminance 0.137; OKLCH L 53.0% C 0.198 H 275.4°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#5157DB
RGBrgb(81, 87, 219)
HSLhsl(237, 66%, 59%)
HSVhsv(237, 63%, 86%)
CMYKcmyk(63%, 60.3%, 0%, 14.1%)
CIE-LABlab(43.77, 37.69, -68.42)
CIE-LCHlch(43.77, 78.11, 298.85°)
OKLaboklab(53.04% 0.0185 -0.197)
OKLCHoklch(53.04% 0.198 275.4)
XYZxyz(19.5835, 13.6786, 68.6123)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5157DB #DBD551
analogous
#519CDB #5157DB #9051DB
triadic
#5157DB #DB5157 #57DB51
tetradic
#5157DB #DB519C #DBD551 #51DB90
square
#5157DB #DB519C #DBD551 #51DB90
split-complementary
#5157DB #DB9051 #9CDB51
monochromatic
#1E2493 #2930C6 #5157DB #8488E5 #B6B9F0

Accessibility & contrast

On white

5.62
#5157DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#5157DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5157DB
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5157DB#FFFFFF#000000##FFFFFF
##5157DB1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5157db;
/* rgb */ color: rgb(81, 87, 219);
/* oklch */ color: oklch(53.0% 0.198 275.4);
Tailwind
colors: {
  custom: {
    50: '#9086e7',
    500: '#5157db',
    950: '#000000',
  },
}
SCSS
$custom: #5157db;
$custom-light: #9086e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5157db",
  "rgb": {
    "r": 81,
    "g": 87,
    "b": 219
  },
  "hsl": {
    "h": 237.391,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.53043,
    "c": 0.19786,
    "h": 275.4
  },
  "luminance": 0.1368
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5157DB

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

Preview Lab → · Contrast checker → · Palette generator →

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