#504BDB#504BDB

#504BDB is a mid, highly saturated blue. Relative luminance 0.119; OKLCH L 51.0% C 0.212 H 277.3°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#504BDB
RGBrgb(80, 75, 219)
HSLhsl(242, 67%, 58%)
HSVhsv(242, 66%, 86%)
CMYKcmyk(63.5%, 65.8%, 0%, 14.1%)
CIE-LABlab(40.98, 44.73, -72.98)
CIE-LCHlch(40.98, 85.59, 301.50°)
OKLaboklab(50.99% 0.0269 -0.2104)
OKLCHoklch(50.99% 0.212 277.3)
XYZxyz(18.6064, 11.8506, 68.3110)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BDB #D6DB4B
analogous
#4B8EDB #504BDB #984BDB
triadic
#504BDB #DB504B #4BDB50
tetradic
#504BDB #DB4B8E #D6DB4B #4BDB98
square
#504BDB #DB4B8E #D6DB4B #4BDB98
split-complementary
#504BDB #DB984B #8EDB4B
monochromatic
#211D8F #2C27C2 #504BDB #827EE5 #B3B1EF

Accessibility & contrast

On white

6.23
#504BDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#504BDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BDB
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BDB#FFFFFF#000000##FFFFFF
##504BDB1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #504bdb;
/* rgb */ color: rgb(80, 75, 219);
/* oklch */ color: oklch(51.0% 0.212 277.3);
Tailwind
colors: {
  custom: {
    50: '#907ee7',
    500: '#504bdb',
    950: '#000000',
  },
}
SCSS
$custom: #504bdb;
$custom-light: #907ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#504bdb",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 219
  },
  "hsl": {
    "h": 242.083,
    "s": 66.667,
    "l": 57.647
  },
  "oklch": {
    "l": 0.50985,
    "c": 0.21217,
    "h": 277.3
  },
  "luminance": 0.11852
}

Semantic roles & 50–950 ramp

primary
#504BDB
secondary
#DCDEA4
accent
#EA3EE4
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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