#5154CA#5154CA

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

Color values

HEX#5154CA
RGBrgb(81, 84, 202)
HSLhsl(239, 53%, 55%)
HSVhsv(239, 60%, 79%)
CMYKcmyk(59.9%, 58.4%, 0%, 20.8%)
CIE-LABlab(41.77, 33.91, -61.90)
CIE-LCHlch(41.77, 70.59, 298.71°)
OKLaboklab(51.17% 0.0215 -0.1779)
OKLCHoklch(51.17% 0.179 276.9)
XYZxyz(17.2209, 12.3529, 57.3425)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154CA #CAC751
analogous
#5191CA #5154CA #8A51CA
triadic
#5154CA #CA5154 #54CA51
tetradic
#5154CA #CA5191 #CAC751 #51CA8A
square
#5154CA #CA5191 #CAC751 #51CA8A
split-complementary
#5154CA #CA8A51 #91CA51
monochromatic
#25287B #3437AA #5154CA #8082D8 #AFB0E7

Accessibility & contrast

On white

6.05
#5154CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5154CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154CA
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154CA#FFFFFF#000000##FFFFFF
##5154CA1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5154ca;
/* rgb */ color: rgb(81, 84, 202);
/* oklch */ color: oklch(51.2% 0.179 276.9);
Tailwind
colors: {
  custom: {
    50: '#8d84db',
    500: '#5154ca',
    950: '#000000',
  },
}
SCSS
$custom: #5154ca;
$custom-light: #8d84db;
$custom-dark: #000000;
JSON
{
  "hex": "#5154ca",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 202
  },
  "hsl": {
    "h": 238.512,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51166,
    "c": 0.17917,
    "h": 276.9
  },
  "luminance": 0.12354
}

Semantic roles & 50–950 ramp

primary
#5154CA
secondary
#D5D3A2
accent
#D94BDD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5154CA

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

Preview Lab → · Contrast checker → · Palette generator →

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