#5054CA#5054CA

#5054CA is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.1% C 0.179 H 276.5°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#5054CA
RGBrgb(80, 84, 202)
HSLhsl(238, 54%, 55%)
HSVhsv(238, 60%, 79%)
CMYKcmyk(60.4%, 58.4%, 0%, 20.8%)
CIE-LABlab(41.70, 33.74, -62.02)
CIE-LCHlch(41.70, 70.60, 298.55°)
OKLaboklab(51.1% 0.0204 -0.1782)
OKLCHoklch(51.1% 0.179 276.5)
XYZxyz(17.1358, 12.3091, 57.3386)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5054CA #CAC650
analogous
#5091CA #5054CA #8950CA
triadic
#5054CA #CA5054 #54CA50
tetradic
#5054CA #CA5091 #CAC650 #50CA89
square
#5054CA #CA5091 #CAC650 #50CA89
split-complementary
#5054CA #CA8950 #91CA50
monochromatic
#25287A #3337A9 #5054CA #7F82D8 #AEB0E6

Accessibility & contrast

On white

6.07
#5054CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5054CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5054CA
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5054CA#FFFFFF#000000##FFFFFF
##5054CA1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5054ca;
/* rgb */ color: rgb(80, 84, 202);
/* oklch */ color: oklch(51.1% 0.179 276.5);
Tailwind
colors: {
  custom: {
    50: '#8d84db',
    500: '#5054ca',
    950: '#000000',
  },
}
SCSS
$custom: #5054ca;
$custom-light: #8d84db;
$custom-dark: #000000;
JSON
{
  "hex": "#5054ca",
  "rgb": {
    "r": 80,
    "g": 84,
    "b": 202
  },
  "hsl": {
    "h": 238.033,
    "s": 53.509,
    "l": 55.294
  },
  "oklch": {
    "l": 0.51098,
    "c": 0.17939,
    "h": 276.5
  },
  "luminance": 0.1231
}

Semantic roles & 50–950 ramp

primary
#5054CA
secondary
#D4D3A1
accent
#D84BDD
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5054CA

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

Preview Lab → · Contrast checker → · Palette generator →

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