#504DBB#504DBB

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

Color values

HEX#504DBB
RGBrgb(80, 77, 187)
HSLhsl(242, 45%, 52%)
HSVhsv(242, 59%, 73%)
CMYKcmyk(57.2%, 58.8%, 0%, 26.7%)
CIE-LABlab(38.90, 33.14, -57.84)
CIE-LCHlch(38.90, 66.66, 299.81°)
OKLaboklab(48.67% 0.0273 -0.166)
OKLCHoklch(48.67% 0.168 279.3)
XYZxyz(14.9290, 10.6001, 48.2634)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DBB #B8BB4D
analogous
#4D81BB #504DBB #874DBB
triadic
#504DBB #BB504D #4DBB50
tetradic
#504DBB #BB4D81 #B8BB4D #4DBB87
square
#504DBB #BB4D81 #B8BB4D #4DBB87
split-complementary
#504DBB #BB874D #81BB4D
monochromatic
#292766 #3B3893 #504DBB #7C79CC #A7A6DD

Accessibility & contrast

On white

6.73
#504DBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#504DBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DBB
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DBB#FFFFFF#000000##FFFFFF
##504DBB1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#12677C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #504dbb;
/* rgb */ color: rgb(80, 77, 187);
/* oklch */ color: oklch(48.7% 0.168 279.3);
Tailwind
colors: {
  custom: {
    50: '#8b7fd0',
    500: '#504dbb',
    950: '#000000',
  },
}
SCSS
$custom: #504dbb;
$custom-light: #8b7fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#504dbb",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 187
  },
  "hsl": {
    "h": 241.636,
    "s": 44.715,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48673,
    "c": 0.16822,
    "h": 279.3
  },
  "luminance": 0.10601
}

Semantic roles & 50–950 ramp

primary
#504DBB
secondary
#C9CA9A
accent
#D453D1
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #504DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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