#504CBD#504CBD

#504CBD is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.7% C 0.172 H 279.4°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#504CBD
RGBrgb(80, 76, 189)
HSLhsl(242, 46%, 52%)
HSVhsv(242, 60%, 74%)
CMYKcmyk(57.7%, 59.8%, 0%, 25.9%)
CIE-LABlab(38.81, 34.41, -59.16)
CIE-LCHlch(38.81, 68.44, 300.19°)
OKLaboklab(48.65% 0.0282 -0.1699)
OKLCHoklch(48.65% 0.172 279.4)
XYZxyz(15.0751, 10.5474, 49.3757)
Luminance0.1055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CBD #B9BD4C
analogous
#4C81BD #504CBD #894CBD
triadic
#504CBD #BD504C #4CBD50
tetradic
#504CBD #BD4C81 #B9BD4C #4CBD89
square
#504CBD #BD4C81 #B9BD4C #4CBD89
split-complementary
#504CBD #BD894C #81BD4C
monochromatic
#292668 #3A3795 #504CBD #7C79CD #A7A5DE

Accessibility & contrast

On white

6.75
#504CBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#504CBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CBD
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CBD#FFFFFF#000000##FFFFFF
##504CBD1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C1
Deuteranopia (green-blind)
#0057BB
Tritanopia (blue-blind)
#0D677D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #504cbd;
/* rgb */ color: rgb(80, 76, 189);
/* oklch */ color: oklch(48.7% 0.172 279.4);
Tailwind
colors: {
  custom: {
    50: '#8b7ed2',
    500: '#504cbd',
    950: '#000000',
  },
}
SCSS
$custom: #504cbd;
$custom-light: #8b7ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#504cbd",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 189
  },
  "hsl": {
    "h": 242.124,
    "s": 46.122,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48653,
    "c": 0.17221,
    "h": 279.4
  },
  "luminance": 0.10548
}

Semantic roles & 50–950 ramp

primary
#504CBD
secondary
#C9CB9A
accent
#D652D1
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #504CBD

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

Preview Lab → · Contrast checker → · Palette generator →

#504CBD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva