#5154CB#5154CB

#5154CB is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.2% C 0.180 H 276.9°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5154CB
RGBrgb(81, 84, 203)
HSLhsl(239, 54%, 56%)
HSVhsv(239, 60%, 80%)
CMYKcmyk(60.1%, 58.6%, 0%, 20.4%)
CIE-LABlab(41.85, 34.24, -62.36)
CIE-LCHlch(41.85, 71.14, 298.77°)
OKLaboklab(51.24% 0.0215 -0.1792)
OKLCHoklch(51.24% 0.181 276.9)
XYZxyz(17.3397, 12.4005, 57.9681)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154CB #CBC851
analogous
#5191CB #5154CB #8B51CB
triadic
#5154CB #CB5154 #54CB51
tetradic
#5154CB #CB5191 #CBC851 #51CB8B
square
#5154CB #CB5191 #CBC851 #51CB8B
split-complementary
#5154CB #CB8B51 #91CB51
monochromatic
#25277C #3336AC #5154CB #8082D9 #AFB1E7

Accessibility & contrast

On white

6.03
#5154CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5154CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154CB
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154CB#FFFFFF#000000##FFFFFF
##5154CB1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#007187
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5154cb;
/* rgb */ color: rgb(81, 84, 203);
/* oklch */ color: oklch(51.2% 0.180 276.9);
Tailwind
colors: {
  custom: {
    50: '#8e84dc',
    500: '#5154cb',
    950: '#000000',
  },
}
SCSS
$custom: #5154cb;
$custom-light: #8e84dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5154cb",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 238.525,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51244,
    "c": 0.1805,
    "h": 276.9
  },
  "luminance": 0.12402
}

Semantic roles & 50–950 ramp

primary
#5154CB
secondary
#D5D4A3
accent
#DA4ADD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5154CB

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

Preview Lab → · Contrast checker → · Palette generator →

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