#504ABB#504ABB

#504ABB is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.1% C 0.172 H 280.1°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#504ABB
RGBrgb(80, 74, 187)
HSLhsl(243, 45%, 51%)
HSVhsv(243, 60%, 73%)
CMYKcmyk(57.2%, 60.4%, 0%, 26.7%)
CIE-LABlab(38.18, 34.99, -59.01)
CIE-LCHlch(38.18, 68.60, 300.67°)
OKLaboklab(48.14% 0.0303 -0.1694)
OKLCHoklch(48.14% 0.172 280.1)
XYZxyz(14.7239, 10.1899, 48.1950)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504ABB #B5BB4A
analogous
#4A7CBB #504ABB #884ABB
triadic
#504ABB #BB504A #4ABB50
tetradic
#504ABB #BB4A7C #B5BB4A #4ABB88
square
#504ABB #BB4A7C #B5BB4A #4ABB88
split-complementary
#504ABB #BB884A #7CBB4A
monochromatic
#292665 #3B3791 #504ABB #7B76CC #A6A3DC

Accessibility & contrast

On white

6.91
#504ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#504ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504ABB
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504ABB#FFFFFF#000000##FFFFFF
##504ABB1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#0056B9
Tritanopia (blue-blind)
#13657B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #504abb;
/* rgb */ color: rgb(80, 74, 187);
/* oklch */ color: oklch(48.1% 0.172 280.1);
Tailwind
colors: {
  custom: {
    50: '#8b7dd0',
    500: '#504abb',
    950: '#000000',
  },
}
SCSS
$custom: #504abb;
$custom-light: #8b7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#504abb",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 187
  },
  "hsl": {
    "h": 243.186,
    "s": 45.382,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48144,
    "c": 0.17212,
    "h": 280.1
  },
  "luminance": 0.10191
}

Semantic roles & 50–950 ramp

primary
#504ABB
secondary
#C7C997
accent
#D553CE
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #504ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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