#504BBD#504BBD

#504BBD is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.5% C 0.173 H 279.7°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#504BBD
RGBrgb(80, 75, 189)
HSLhsl(243, 46%, 52%)
HSVhsv(243, 60%, 74%)
CMYKcmyk(57.7%, 60.3%, 0%, 25.9%)
CIE-LABlab(38.57, 35.03, -59.55)
CIE-LCHlch(38.57, 69.08, 300.47°)
OKLaboklab(48.48% 0.0292 -0.171)
OKLCHoklch(48.48% 0.173 279.7)
XYZxyz(15.0068, 10.4107, 49.3529)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BBD #B8BD4B
analogous
#4B7FBD #504BBD #894BBD
triadic
#504BBD #BD504B #4BBD50
tetradic
#504BBD #BD4B7F #B8BD4B #4BBD89
square
#504BBD #BD4B7F #B8BD4B #4BBD89
split-complementary
#504BBD #BD894B #7FBD4B
monochromatic
#292668 #3B3694 #504BBD #7C78CD #A7A5DE

Accessibility & contrast

On white

6.81
#504BBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#504BBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BBD
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BBD#FFFFFF#000000##FFFFFF
##504BBD1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC1
Deuteranopia (green-blind)
#0056BB
Tritanopia (blue-blind)
#0E677D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #504bbd;
/* rgb */ color: rgb(80, 75, 189);
/* oklch */ color: oklch(48.5% 0.173 279.7);
Tailwind
colors: {
  custom: {
    50: '#8b7dd2',
    500: '#504bbd',
    950: '#000000',
  },
}
SCSS
$custom: #504bbd;
$custom-light: #8b7dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#504bbd",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 189
  },
  "hsl": {
    "h": 242.632,
    "s": 46.341,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48478,
    "c": 0.17349,
    "h": 279.7
  },
  "luminance": 0.10412
}

Semantic roles & 50–950 ramp

primary
#504BBD
secondary
#C9CB99
accent
#D652D0
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #504BBD

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

Preview Lab → · Contrast checker → · Palette generator →

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