#504DBA#504DBA

#504DBA is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.6% C 0.167 H 279.4°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#504DBA
RGBrgb(80, 77, 186)
HSLhsl(242, 44%, 52%)
HSVhsv(242, 59%, 73%)
CMYKcmyk(57%, 58.6%, 0%, 27.1%)
CIE-LABlab(38.82, 32.82, -57.37)
CIE-LCHlch(38.82, 66.10, 299.77°)
OKLaboklab(48.6% 0.0273 -0.1646)
OKLCHoklch(48.6% 0.167 279.4)
XYZxyz(14.8223, 10.5574, 47.7016)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DBA #B7BA4D
analogous
#4D81BA #504DBA #874DBA
triadic
#504DBA #BA504D #4DBA50
tetradic
#504DBA #BA4D81 #B7BA4D #4DBA87
square
#504DBA #BA4D81 #B7BA4D #4DBA87
split-complementary
#504DBA #BA874D #81BA4D
monochromatic
#292765 #3B3891 #504DBA #7B79CB #A7A5DC

Accessibility & contrast

On white

6.75
#504DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#504DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DBA
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DBA#FFFFFF#000000##FFFFFF
##504DBA1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#0057B8
Tritanopia (blue-blind)
#14677C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #504dba;
/* rgb */ color: rgb(80, 77, 186);
/* oklch */ color: oklch(48.6% 0.167 279.4);
Tailwind
colors: {
  custom: {
    50: '#8b7fcf',
    500: '#504dba',
    950: '#000000',
  },
}
SCSS
$custom: #504dba;
$custom-light: #8b7fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#504dba",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 186
  },
  "hsl": {
    "h": 241.651,
    "s": 44.13,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48596,
    "c": 0.16687,
    "h": 279.4
  },
  "luminance": 0.10558
}

Semantic roles & 50–950 ramp

primary
#504DBA
secondary
#C8C999
accent
#D454D0
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #504DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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