#5154DD#5154DD

#5154DD is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 52.7% C 0.204 H 275.9°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#5154DD
RGBrgb(81, 84, 221)
HSLhsl(239, 67%, 59%)
HSVhsv(239, 63%, 87%)
CMYKcmyk(63.3%, 62%, 0%, 13.3%)
CIE-LABlab(43.22, 40.17, -70.44)
CIE-LCHlch(43.22, 81.09, 299.70°)
OKLaboklab(52.69% 0.0209 -0.203)
OKLCHoklch(52.69% 0.204 275.9)
XYZxyz(19.6105, 13.3088, 69.9280)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154DD #DDDA51
analogous
#519ADD #5154DD #9451DD
triadic
#5154DD #DD5154 #54DD51
tetradic
#5154DD #DD519A #DDDA51 #51DD94
square
#5154DD #DD519A #DDDA51 #51DD94
split-complementary
#5154DD #DD9451 #9ADD51
monochromatic
#1D2096 #272BC9 #5154DD #8486E7 #B7B9F1

Accessibility & contrast

On white

5.73
#5154DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5154DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154DD
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154DD#FFFFFF#000000##FFFFFF
##5154DD1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE1
Deuteranopia (green-blind)
#0060DA
Tritanopia (blue-blind)
#007691
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5154dd;
/* rgb */ color: rgb(81, 84, 221);
/* oklch */ color: oklch(52.7% 0.204 275.9);
Tailwind
colors: {
  custom: {
    50: '#9184e9',
    500: '#5154dd',
    950: '#000000',
  },
}
SCSS
$custom: #5154dd;
$custom-light: #9184e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5154dd",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 221
  },
  "hsl": {
    "h": 238.714,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.52692,
    "c": 0.20403,
    "h": 275.9
  },
  "luminance": 0.1331
}

Semantic roles & 50–950 ramp

primary
#5154DD
secondary
#E0DFAA
accent
#E63EEA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5154DD

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

Preview Lab → · Contrast checker → · Palette generator →

#5154DD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva