#504CB1#504CB1

#504CB1 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.7% C 0.156 H 280.5°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#504CB1
RGBrgb(80, 76, 177)
HSLhsl(242, 40%, 50%)
HSVhsv(242, 57%, 69%)
CMYKcmyk(54.8%, 57.1%, 0%, 30.6%)
CIE-LABlab(37.93, 30.51, -53.52)
CIE-LCHlch(37.93, 61.61, 299.69°)
OKLaboklab(47.73% 0.0284 -0.1533)
OKLCHoklch(47.73% 0.156 280.5)
XYZxyz(13.8261, 10.0478, 42.7973)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CB1 #ADB14C
analogous
#4C7BB1 #504CB1 #834CB1
triadic
#504CB1 #B1504C #4CB150
tetradic
#504CB1 #B14C7B #ADB14C #4CB183
square
#504CB1 #B14C7B #ADB14C #4CB183
split-complementary
#504CB1 #B1834C #7BB14C
monochromatic
#29275B #3D3A86 #504CB1 #7976C4 #A3A1D7

Accessibility & contrast

On white

6.98
#504CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#504CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CB1
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CB1#FFFFFF#000000##FFFFFF
##504CB11.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB4
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#236377
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #504cb1;
/* rgb */ color: rgb(80, 76, 177);
/* oklch */ color: oklch(47.7% 0.156 280.5);
Tailwind
colors: {
  custom: {
    50: '#897ec9',
    500: '#504cb1',
    950: '#000000',
  },
}
SCSS
$custom: #504cb1;
$custom-light: #897ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#504cb1",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 177
  },
  "hsl": {
    "h": 242.376,
    "s": 39.921,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47725,
    "c": 0.1559,
    "h": 280.5
  },
  "luminance": 0.10049
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #504CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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