#504397#504397

#504397 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.1% C 0.132 H 286.8°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#504397
RGBrgb(80, 67, 151)
HSLhsl(249, 39%, 43%)
HSVhsv(249, 56%, 59%)
CMYKcmyk(47%, 55.6%, 0%, 40.8%)
CIE-LABlab(33.89, 27.89, -44.47)
CIE-LCHlch(33.89, 52.49, 302.10°)
OKLaboklab(44.15% 0.0382 -0.1267)
OKLCHoklch(44.15% 0.132 286.8)
XYZxyz(10.8997, 7.9537, 30.2331)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504397 #8A9743
analogous
#436097 #504397 #7A4397
triadic
#504397 #975043 #439750
tetradic
#504397 #974360 #8A9743 #43977A
square
#504397 #974360 #8A9743 #43977A
split-complementary
#504397 #977A43 #609743
monochromatic
#231D42 #3A306D #504397 #6D5FB8 #948ACB

Accessibility & contrast

On white

8.11
#504397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#504397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504397
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504397#FFFFFF#000000##FFFFFF
##5043971.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16529A
Deuteranopia (green-blind)
#144D95
Tritanopia (blue-blind)
#395566
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #504397;
/* rgb */ color: rgb(80, 67, 151);
/* oklch */ color: oklch(44.1% 0.132 286.8);
Tailwind
colors: {
  custom: {
    50: '#8677b6',
    500: '#504397',
    950: '#000000',
  },
}
SCSS
$custom: #504397;
$custom-light: #8677b6;
$custom-dark: #000000;
JSON
{
  "hex": "#504397",
  "rgb": {
    "r": 80,
    "g": 67,
    "b": 151
  },
  "hsl": {
    "h": 249.286,
    "s": 38.532,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44148,
    "c": 0.13234,
    "h": 286.8
  },
  "luminance": 0.07954
}

Semantic roles & 50–950 ramp

primary
#504397
secondary
#AEB680
accent
#CE59BC
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #504397

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

Preview Lab → · Contrast checker → · Palette generator →

#504397 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva