#504BD8#504BD8

#504BD8 is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 50.7% C 0.208 H 277.5°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#504BD8
RGBrgb(80, 75, 216)
HSLhsl(242, 64%, 57%)
HSVhsv(242, 65%, 85%)
CMYKcmyk(63%, 65.3%, 0%, 15.3%)
CIE-LABlab(40.73, 43.76, -71.67)
CIE-LCHlch(40.73, 83.98, 301.41°)
OKLaboklab(50.72% 0.0273 -0.2066)
OKLCHoklch(50.72% 0.208 277.5)
XYZxyz(18.2150, 11.6940, 66.2497)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BD8 #D3D84B
analogous
#4B8CD8 #504BD8 #974BD8
triadic
#504BD8 #D8504B #4BD850
tetradic
#504BD8 #D84B8C #D3D84B #4BD897
square
#504BD8 #D84B8C #D3D84B #4BD897
split-complementary
#504BD8 #D8974B #8CD84B
monochromatic
#221E8B #2E29BD #504BD8 #817DE3 #B2B0EE

Accessibility & contrast

On white

6.29
#504BD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#504BD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BD8
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BD8#FFFFFF#000000##FFFFFF
##504BD81.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DC
Deuteranopia (green-blind)
#005AD5
Tritanopia (blue-blind)
#00708B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #504bd8;
/* rgb */ color: rgb(80, 75, 216);
/* oklch */ color: oklch(50.7% 0.208 277.5);
Tailwind
colors: {
  custom: {
    50: '#907ee5',
    500: '#504bd8',
    950: '#000000',
  },
}
SCSS
$custom: #504bd8;
$custom-light: #907ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#504bd8",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 216
  },
  "hsl": {
    "h": 242.128,
    "s": 64.384,
    "l": 57.059
  },
  "oklch": {
    "l": 0.50725,
    "c": 0.20842,
    "h": 277.5
  },
  "luminance": 0.11695
}

Semantic roles & 50–950 ramp

primary
#504BD8
secondary
#DADCA3
accent
#E740E1
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504BD8

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

Preview Lab → · Contrast checker → · Palette generator →

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