#504CA2#504CA2

#504CA2 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.6% C 0.135 H 281.9°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#504CA2
RGBrgb(80, 76, 162)
HSLhsl(243, 36%, 47%)
HSVhsv(243, 53%, 64%)
CMYKcmyk(50.6%, 53.1%, 0%, 36.5%)
CIE-LABlab(36.90, 25.67, -46.26)
CIE-LCHlch(36.90, 52.90, 299.03°)
OKLaboklab(46.63% 0.0278 -0.1319)
OKLCHoklch(46.63% 0.135 281.9)
XYZxyz(12.4123, 9.4823, 35.3517)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CA2 #9EA24C
analogous
#4C73A2 #504CA2 #7B4CA2
triadic
#504CA2 #A2504C #4CA250
tetradic
#504CA2 #A24C73 #9EA24C #4CA27B
square
#504CA2 #A24C73 #9EA24C #4CA27B
split-complementary
#504CA2 #A27B4C #73A24C
monochromatic
#27254F #3B3878 #504CA2 #7370BC #9C99CF

Accessibility & contrast

On white

7.25
#504CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#504CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504CA2
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CA2#FFFFFF#000000##FFFFFF
##504CA21.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205AA5
Deuteranopia (green-blind)
#1854A0
Tritanopia (blue-blind)
#315F6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #504ca2;
/* rgb */ color: rgb(80, 76, 162);
/* oklch */ color: oklch(46.6% 0.135 281.9);
Tailwind
colors: {
  custom: {
    50: '#877ebe',
    500: '#504ca2',
    950: '#000000',
  },
}
SCSS
$custom: #504ca2;
$custom-light: #877ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#504ca2",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 162
  },
  "hsl": {
    "h": 242.791,
    "s": 36.134,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46628,
    "c": 0.13484,
    "h": 281.9
  },
  "luminance": 0.09483
}

Semantic roles & 50–950 ramp

primary
#504CA2
secondary
#BABC8E
accent
#CC5CC7
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #504CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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