#504BBB#504BBB

#504BBB is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.3% C 0.171 H 279.9°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#504BBB
RGBrgb(80, 75, 187)
HSLhsl(243, 45%, 51%)
HSVhsv(243, 60%, 73%)
CMYKcmyk(57.2%, 59.9%, 0%, 26.7%)
CIE-LABlab(38.42, 34.38, -58.62)
CIE-LCHlch(38.42, 67.96, 300.39°)
OKLaboklab(48.32% 0.0293 -0.1683)
OKLCHoklch(48.32% 0.171 279.9)
XYZxyz(14.7912, 10.3245, 48.2175)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BBB #B6BB4B
analogous
#4B7EBB #504BBB #884BBB
triadic
#504BBB #BB504B #4BBB50
tetradic
#504BBB #BB4B7E #B6BB4B #4BBB88
square
#504BBB #BB4B7E #B6BB4B #4BBB88
split-complementary
#504BBB #BB884B #7EBB4B
monochromatic
#292665 #3B3792 #504BBB #7B77CC #A6A4DD

Accessibility & contrast

On white

6.85
#504BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#504BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BBB
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BBB#FFFFFF#000000##FFFFFF
##504BBB1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#0056B9
Tritanopia (blue-blind)
#13667C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #504bbb;
/* rgb */ color: rgb(80, 75, 187);
/* oklch */ color: oklch(48.3% 0.171 279.9);
Tailwind
colors: {
  custom: {
    50: '#8b7dd0',
    500: '#504bbb',
    950: '#000000',
  },
}
SCSS
$custom: #504bbb;
$custom-light: #8b7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#504bbb",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 187
  },
  "hsl": {
    "h": 242.679,
    "s": 45.161,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48319,
    "c": 0.17083,
    "h": 279.9
  },
  "luminance": 0.10325
}

Semantic roles & 50–950 ramp

primary
#504BBB
secondary
#C7CA98
accent
#D553CF
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #504BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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