#504CAF#504CAF

#504CAF is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.6% C 0.153 H 280.7°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#504CAF
RGBrgb(80, 76, 175)
HSLhsl(242, 39%, 49%)
HSVhsv(242, 57%, 69%)
CMYKcmyk(54.3%, 56.6%, 0%, 31.4%)
CIE-LABlab(37.79, 29.86, -52.57)
CIE-LCHlch(37.79, 60.46, 299.60°)
OKLaboklab(47.58% 0.0283 -0.1505)
OKLCHoklch(47.58% 0.153 280.7)
XYZxyz(13.6282, 9.9687, 41.7552)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CAF #ABAF4C
analogous
#4C7AAF #504CAF #824CAF
triadic
#504CAF #AF504C #4CAF50
tetradic
#504CAF #AF4C7A #ABAF4C #4CAF82
square
#504CAF #AF4C7A #ABAF4C #4CAF82
split-complementary
#504CAF #AF824C #7AAF4C
monochromatic
#29275A #3C3984 #504CAF #7875C3 #A2A0D6

Accessibility & contrast

On white

7.01
#504CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#504CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504CAF
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CAF#FFFFFF#000000##FFFFFF
##504CAF1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#025DB2
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#256376
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #504caf;
/* rgb */ color: rgb(80, 76, 175);
/* oklch */ color: oklch(47.6% 0.153 280.7);
Tailwind
colors: {
  custom: {
    50: '#897ec8',
    500: '#504caf',
    950: '#000000',
  },
}
SCSS
$custom: #504caf;
$custom-light: #897ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#504caf",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 175
  },
  "hsl": {
    "h": 242.424,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47575,
    "c": 0.15314,
    "h": 280.7
  },
  "luminance": 0.0997
}

Semantic roles & 50–950 ramp

primary
#504CAF
secondary
#C1C294
accent
#CF58CB
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #504CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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