#504DBC#504DBC

#504DBC is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.8% C 0.170 H 279.3°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#504DBC
RGBrgb(80, 77, 188)
HSLhsl(242, 45%, 52%)
HSVhsv(242, 59%, 74%)
CMYKcmyk(57.4%, 59%, 0%, 26.3%)
CIE-LABlab(38.97, 33.47, -58.31)
CIE-LCHlch(38.97, 67.23, 299.86°)
OKLaboklab(48.75% 0.0273 -0.1674)
OKLCHoklch(48.75% 0.17 279.3)
XYZxyz(15.0364, 10.6430, 48.8292)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DBC #B9BC4D
analogous
#4D81BC #504DBC #884DBC
triadic
#504DBC #BC504D #4DBC50
tetradic
#504DBC #BC4D81 #B9BC4D #4DBC88
square
#504DBC #BC4D81 #B9BC4D #4DBC88
split-complementary
#504DBC #BC884D #81BC4D
monochromatic
#292768 #3A3894 #504DBC #7C79CD #A7A6DD

Accessibility & contrast

On white

6.71
#504DBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#504DBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DBC
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DBC#FFFFFF#000000##FFFFFF
##504DBC1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#10677D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #504dbc;
/* rgb */ color: rgb(80, 77, 188);
/* oklch */ color: oklch(48.8% 0.170 279.3);
Tailwind
colors: {
  custom: {
    50: '#8b7fd1',
    500: '#504dbc',
    950: '#000000',
  },
}
SCSS
$custom: #504dbc;
$custom-light: #8b7fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#504dbc",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 188
  },
  "hsl": {
    "h": 241.622,
    "s": 45.306,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48751,
    "c": 0.16957,
    "h": 279.3
  },
  "luminance": 0.10644
}

Semantic roles & 50–950 ramp

primary
#504DBC
secondary
#C9CB9A
accent
#D553D1
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #504DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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