#5154CF#5154CF

#5154CF is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.6% C 0.186 H 276.6°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5154CF
RGBrgb(81, 84, 207)
HSLhsl(239, 57%, 56%)
HSVhsv(239, 61%, 81%)
CMYKcmyk(60.9%, 59.4%, 0%, 18.8%)
CIE-LABlab(42.14, 35.56, -64.18)
CIE-LCHlch(42.14, 73.38, 298.99°)
OKLaboklab(51.56% 0.0215 -0.1846)
OKLCHoklch(51.56% 0.186 276.6)
XYZxyz(17.8225, 12.5936, 60.5110)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154CF #CFCC51
analogous
#5193CF #5154CF #8D51CF
triadic
#5154CF #CF5154 #54CF51
tetradic
#5154CF #CF5193 #CFCC51 #51CF8D
square
#5154CF #CF5193 #CFCC51 #51CF8D
split-complementary
#5154CF #CF8D51 #93CF51
monochromatic
#242682 #3134B2 #5154CF #8183DC #B1B2E9

Accessibility & contrast

On white

5.97
#5154CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5154CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154CF
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154CF#FFFFFF#000000##FFFFFF
##5154CF1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#005ECD
Tritanopia (blue-blind)
#007289
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5154cf;
/* rgb */ color: rgb(81, 84, 207);
/* oklch */ color: oklch(51.6% 0.186 276.6);
Tailwind
colors: {
  custom: {
    50: '#8e84df',
    500: '#5154cf',
    950: '#000000',
  },
}
SCSS
$custom: #5154cf;
$custom-light: #8e84df;
$custom-dark: #000000;
JSON
{
  "hex": "#5154cf",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 207
  },
  "hsl": {
    "h": 238.571,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51559,
    "c": 0.18581,
    "h": 276.6
  },
  "luminance": 0.12595
}

Semantic roles & 50–950 ramp

primary
#5154CF
secondary
#D8D7A4
accent
#DC48E0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5154CF

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

Preview Lab → · Contrast checker → · Palette generator →

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