#504BAC#504BAC

#504BAC is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.2% C 0.150 H 281.3°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#504BAC
RGBrgb(80, 75, 172)
HSLhsl(243, 39%, 48%)
HSVhsv(243, 56%, 67%)
CMYKcmyk(53.5%, 56.4%, 0%, 32.5%)
CIE-LABlab(37.33, 29.52, -51.53)
CIE-LCHlch(37.33, 59.39, 299.81°)
OKLaboklab(47.17% 0.0294 -0.1474)
OKLCHoklch(47.17% 0.15 281.3)
XYZxyz(13.2684, 9.7154, 40.1978)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BAC #A7AC4B
analogous
#4B76AC #504BAC #804BAC
triadic
#504BAC #AC504B #4BAC50
tetradic
#504BAC #AC4B76 #A7AC4B #4BAC80
square
#504BAC #AC4B76 #A7AC4B #4BAC80
split-complementary
#504BAC #AC804B #76AC4B
monochromatic
#282657 #3C3881 #504BAC #7772C2 #A09DD4

Accessibility & contrast

On white

7.14
#504BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#504BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504BAC
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BAC#FFFFFF#000000##FFFFFF
##504BAC1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065BAF
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#286174
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #504bac;
/* rgb */ color: rgb(80, 75, 172);
/* oklch */ color: oklch(47.2% 0.150 281.3);
Tailwind
colors: {
  custom: {
    50: '#897dc5',
    500: '#504bac',
    950: '#000000',
  },
}
SCSS
$custom: #504bac;
$custom-light: #897dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#504bac",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 172
  },
  "hsl": {
    "h": 243.093,
    "s": 39.271,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47166,
    "c": 0.15035,
    "h": 281.3
  },
  "luminance": 0.09716
}

Semantic roles & 50–950 ramp

primary
#504BAC
secondary
#BFC192
accent
#CF59C9
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #504BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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