#504BA2#504BA2

#504BA2 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.4% C 0.136 H 282.3°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#504BA2
RGBrgb(80, 75, 162)
HSLhsl(243, 37%, 46%)
HSVhsv(243, 54%, 64%)
CMYKcmyk(50.6%, 53.7%, 0%, 36.5%)
CIE-LABlab(36.64, 26.30, -46.67)
CIE-LCHlch(36.64, 53.57, 299.41°)
OKLaboklab(46.44% 0.029 -0.1331)
OKLCHoklch(46.44% 0.136 282.3)
XYZxyz(12.3440, 9.3456, 35.3289)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BA2 #9DA24B
analogous
#4B72A2 #504BA2 #7C4BA2
triadic
#504BA2 #A2504B #4BA250
tetradic
#504BA2 #A24B72 #9DA24B #4BA27C
square
#504BA2 #A24B72 #9DA24B #4BA27C
split-complementary
#504BA2 #A27C4B #72A24B
monochromatic
#27244E #3B3878 #504BA2 #736EBC #9B98CF

Accessibility & contrast

On white

7.32
#504BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#504BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504BA2
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BA2#FFFFFF#000000##FFFFFF
##504BA21.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D59A5
Deuteranopia (green-blind)
#1553A0
Tritanopia (blue-blind)
#315E6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #504ba2;
/* rgb */ color: rgb(80, 75, 162);
/* oklch */ color: oklch(46.4% 0.136 282.3);
Tailwind
colors: {
  custom: {
    50: '#877dbe',
    500: '#504ba2',
    950: '#000000',
  },
}
SCSS
$custom: #504ba2;
$custom-light: #877dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#504ba2",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 162
  },
  "hsl": {
    "h": 243.448,
    "s": 36.709,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46437,
    "c": 0.13627,
    "h": 282.3
  },
  "luminance": 0.09346
}

Semantic roles & 50–950 ramp

primary
#504BA2
secondary
#B9BC8D
accent
#CD5BC6
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #504BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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