#504BD4#504BD4

#504BD4 is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.4% C 0.203 H 277.8°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#504BD4
RGBrgb(80, 75, 212)
HSLhsl(242, 61%, 56%)
HSVhsv(242, 65%, 83%)
CMYKcmyk(62.3%, 64.6%, 0%, 16.9%)
CIE-LABlab(40.39, 42.48, -69.92)
CIE-LCHlch(40.39, 81.81, 301.28°)
OKLaboklab(50.38% 0.0277 -0.2015)
OKLCHoklch(50.38% 0.203 277.8)
XYZxyz(17.7042, 11.4897, 63.5594)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BD4 #CFD44B
analogous
#4B8BD4 #504BD4 #954BD4
triadic
#504BD4 #D4504B #4BD450
tetradic
#504BD4 #D44B8B #CFD44B #4BD495
square
#504BD4 #D44B8B #CFD44B #4BD495
split-complementary
#504BD4 #D4954B #8BD44B
monochromatic
#232085 #312CB6 #504BD4 #807CE0 #B0AEEC

Accessibility & contrast

On white

6.37
#504BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#504BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BD4
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BD4#FFFFFF#000000##FFFFFF
##504BD41.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D8
Deuteranopia (green-blind)
#0059D1
Tritanopia (blue-blind)
#006E89
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #504bd4;
/* rgb */ color: rgb(80, 75, 212);
/* oklch */ color: oklch(50.4% 0.203 277.8);
Tailwind
colors: {
  custom: {
    50: '#8f7ee2',
    500: '#504bd4',
    950: '#000000',
  },
}
SCSS
$custom: #504bd4;
$custom-light: #8f7ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#504bd4",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 212
  },
  "hsl": {
    "h": 242.19,
    "s": 61.435,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50381,
    "c": 0.20338,
    "h": 277.8
  },
  "luminance": 0.11491
}

Semantic roles & 50–950 ramp

primary
#504BD4
secondary
#D8DAA1
accent
#E543DF
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A15
muted
#7E7C84

Preview Lab

Preview with #504BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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