#504CB0#504CB0

#504CB0 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.6% C 0.155 H 280.6°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#504CB0
RGBrgb(80, 76, 176)
HSLhsl(242, 40%, 49%)
HSVhsv(242, 57%, 69%)
CMYKcmyk(54.5%, 56.8%, 0%, 31%)
CIE-LABlab(37.86, 30.19, -53.05)
CIE-LCHlch(37.86, 61.04, 299.64°)
OKLaboklab(47.65% 0.0284 -0.1519)
OKLCHoklch(47.65% 0.155 280.6)
XYZxyz(13.7267, 10.0081, 42.2743)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CB0 #ACB04C
analogous
#4C7AB0 #504CB0 #824CB0
triadic
#504CB0 #B0504C #4CB050
tetradic
#504CB0 #B04C7A #ACB04C #4CB082
square
#504CB0 #B04C7A #ACB04C #4CB082
split-complementary
#504CB0 #B0824C #7AB04C
monochromatic
#29275B #3D3A85 #504CB0 #7976C4 #A2A0D6

Accessibility & contrast

On white

7.00
#504CB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#504CB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CB0
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CB0#FFFFFF#000000##FFFFFF
##504CB01.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB3
Deuteranopia (green-blind)
#0055AE
Tritanopia (blue-blind)
#246376
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #504cb0;
/* rgb */ color: rgb(80, 76, 176);
/* oklch */ color: oklch(47.6% 0.155 280.6);
Tailwind
colors: {
  custom: {
    50: '#897ec8',
    500: '#504cb0',
    950: '#000000',
  },
}
SCSS
$custom: #504cb0;
$custom-light: #897ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#504cb0",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 176
  },
  "hsl": {
    "h": 242.4,
    "s": 39.683,
    "l": 49.412
  },
  "oklch": {
    "l": 0.4765,
    "c": 0.15452,
    "h": 280.6
  },
  "luminance": 0.10009
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #504CB0

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

Preview Lab → · Contrast checker → · Palette generator →

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