#504CB2#504CB2

#504CB2 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.8% C 0.157 H 280.4°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#504CB2
RGBrgb(80, 76, 178)
HSLhsl(242, 40%, 50%)
HSVhsv(242, 57%, 70%)
CMYKcmyk(55.1%, 57.3%, 0%, 30.2%)
CIE-LABlab(38.00, 30.84, -54.00)
CIE-LCHlch(38.00, 62.18, 299.73°)
OKLaboklab(47.8% 0.0284 -0.1547)
OKLCHoklch(47.8% 0.157 280.4)
XYZxyz(13.9261, 10.0878, 43.3242)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CB2 #AEB24C
analogous
#4C7BB2 #504CB2 #834CB2
triadic
#504CB2 #B2504C #4CB250
tetradic
#504CB2 #B24C7B #AEB24C #4CB283
square
#504CB2 #B24C7B #AEB24C #4CB283
split-complementary
#504CB2 #B2834C #7BB24C
monochromatic
#29275C #3D3A87 #504CB2 #7A76C5 #A3A1D7

Accessibility & contrast

On white

6.96
#504CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#504CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CB2
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CB2#FFFFFF#000000##FFFFFF
##504CB21.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#216477
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #504cb2;
/* rgb */ color: rgb(80, 76, 178);
/* oklch */ color: oklch(47.8% 0.157 280.4);
Tailwind
colors: {
  custom: {
    50: '#897eca',
    500: '#504cb2',
    950: '#000000',
  },
}
SCSS
$custom: #504cb2;
$custom-light: #897eca;
$custom-dark: #000000;
JSON
{
  "hex": "#504cb2",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 242.353,
    "s": 40.157,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47801,
    "c": 0.15728,
    "h": 280.4
  },
  "luminance": 0.10089
}

Semantic roles & 50–950 ramp

primary
#504CB2
secondary
#C2C496
accent
#D058CB
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #504CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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