#504CBB#504CBB

#504CBB is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.5% C 0.170 H 279.6°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#504CBB
RGBrgb(80, 76, 187)
HSLhsl(242, 45%, 52%)
HSVhsv(242, 59%, 73%)
CMYKcmyk(57.2%, 59.4%, 0%, 26.7%)
CIE-LABlab(38.66, 33.76, -58.23)
CIE-LCHlch(38.66, 67.31, 300.10°)
OKLaboklab(48.5% 0.0283 -0.1671)
OKLCHoklch(48.5% 0.17 279.6)
XYZxyz(14.8595, 10.4612, 48.2403)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CBB #B7BB4C
analogous
#4C80BB #504CBB #884CBB
triadic
#504CBB #BB504C #4CBB50
tetradic
#504CBB #BB4C80 #B7BB4C #4CBB88
square
#504CBB #BB4C80 #B7BB4C #4CBB88
split-complementary
#504CBB #BB884C #80BB4C
monochromatic
#292766 #3B3892 #504CBB #7B78CC #A7A5DD

Accessibility & contrast

On white

6.79
#504CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#504CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CBB
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CBB#FFFFFF#000000##FFFFFF
##504CBB1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#13677C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #504cbb;
/* rgb */ color: rgb(80, 76, 187);
/* oklch */ color: oklch(48.5% 0.170 279.6);
Tailwind
colors: {
  custom: {
    50: '#8b7ed0',
    500: '#504cbb',
    950: '#000000',
  },
}
SCSS
$custom: #504cbb;
$custom-light: #8b7ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#504cbb",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 187
  },
  "hsl": {
    "h": 242.162,
    "s": 44.939,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48496,
    "c": 0.16953,
    "h": 279.6
  },
  "luminance": 0.10462
}

Semantic roles & 50–950 ramp

primary
#504CBB
secondary
#C8CA99
accent
#D553D0
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #504CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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