#504CBF#504CBF

#504CBF is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.8% C 0.175 H 279.3°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#504CBF
RGBrgb(80, 76, 191)
HSLhsl(242, 47%, 52%)
HSVhsv(242, 60%, 75%)
CMYKcmyk(58.1%, 60.2%, 0%, 25.1%)
CIE-LABlab(38.96, 35.06, -60.08)
CIE-LCHlch(38.96, 69.57, 300.27°)
OKLaboklab(48.81% 0.0282 -0.1726)
OKLCHoklch(48.81% 0.175 279.3)
XYZxyz(15.2937, 10.6349, 50.5269)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CBF #BBBF4C
analogous
#4C82BF #504CBF #8A4CBF
triadic
#504CBF #BF504C #4CBF50
tetradic
#504CBF #BF4C82 #BBBF4C #4CBF8A
square
#504CBF #BF4C82 #BBBF4C #4CBF8A
split-complementary
#504CBF #BF8A4C #82BF4C
monochromatic
#28266B #3A3698 #504CBF #7C79CF #A8A6DF

Accessibility & contrast

On white

6.72
#504CBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#504CBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CBF
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CBF#FFFFFF#000000##FFFFFF
##504CBF1.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C3
Deuteranopia (green-blind)
#0057BD
Tritanopia (blue-blind)
#07687E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #504cbf;
/* rgb */ color: rgb(80, 76, 191);
/* oklch */ color: oklch(48.8% 0.175 279.3);
Tailwind
colors: {
  custom: {
    50: '#8c7ed3',
    500: '#504cbf',
    950: '#000000',
  },
}
SCSS
$custom: #504cbf;
$custom-light: #8c7ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#504cbf",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 191
  },
  "hsl": {
    "h": 242.087,
    "s": 47.325,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48812,
    "c": 0.17488,
    "h": 279.3
  },
  "luminance": 0.10636
}

Semantic roles & 50–950 ramp

primary
#504CBF
secondary
#CBCC9A
accent
#D751D2
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #504CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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