#504CDB#504CDB

#504CDB is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.1% C 0.211 H 277.1°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#504CDB
RGBrgb(80, 76, 219)
HSLhsl(242, 67%, 58%)
HSVhsv(242, 65%, 86%)
CMYKcmyk(63.5%, 65.3%, 0%, 14.1%)
CIE-LABlab(41.20, 44.14, -72.62)
CIE-LCHlch(41.20, 84.98, 301.29°)
OKLaboklab(51.14% 0.0262 -0.2094)
OKLCHoklch(51.14% 0.211 277.1)
XYZxyz(18.6747, 11.9873, 68.3338)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CDB #D7DB4C
analogous
#4C90DB #504CDB #974CDB
triadic
#504CDB #DB504C #4CDB50
tetradic
#504CDB #DB4C90 #D7DB4C #4CDB97
square
#504CDB #DB4C90 #D7DB4C #4CDB97
split-complementary
#504CDB #DB974C #90DB4C
monochromatic
#201D90 #2B27C3 #504CDB #827FE5 #B4B2EF

Accessibility & contrast

On white

6.18
#504CDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#504CDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CDB
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CDB#FFFFFF#000000##FFFFFF
##504CDB1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DF
Deuteranopia (green-blind)
#005BD8
Tritanopia (blue-blind)
#00718D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #504cdb;
/* rgb */ color: rgb(80, 76, 219);
/* oklch */ color: oklch(51.1% 0.211 277.1);
Tailwind
colors: {
  custom: {
    50: '#907fe7',
    500: '#504cdb',
    950: '#000000',
  },
}
SCSS
$custom: #504cdb;
$custom-light: #907fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#504cdb",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 219
  },
  "hsl": {
    "h": 241.678,
    "s": 66.512,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51144,
    "c": 0.21104,
    "h": 277.1
  },
  "luminance": 0.11989
}

Semantic roles & 50–950 ramp

primary
#504CDB
secondary
#DCDEA5
accent
#E93EE5
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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