#504BD6#504BD6

#504BD6 is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 50.6% C 0.206 H 277.7°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#504BD6
RGBrgb(80, 75, 214)
HSLhsl(242, 63%, 57%)
HSVhsv(242, 65%, 84%)
CMYKcmyk(62.6%, 65%, 0%, 16.1%)
CIE-LABlab(40.56, 43.12, -70.80)
CIE-LCHlch(40.56, 82.90, 301.34°)
OKLaboklab(50.55% 0.0275 -0.2041)
OKLCHoklch(50.55% 0.206 277.7)
XYZxyz(17.9580, 11.5912, 64.8963)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BD6 #D1D64B
analogous
#4B8CD6 #504BD6 #964BD6
triadic
#504BD6 #D6504B #4BD650
tetradic
#504BD6 #D64B8C #D1D64B #4BD696
square
#504BD6 #D64B8C #D1D64B #4BD696
split-complementary
#504BD6 #D6964B #8CD64B
monochromatic
#231F88 #2F2ABA #504BD6 #807DE1 #B1AFED

Accessibility & contrast

On white

6.33
#504BD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#504BD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BD6
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BD6#FFFFFF#000000##FFFFFF
##504BD61.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DA
Deuteranopia (green-blind)
#005AD3
Tritanopia (blue-blind)
#006F8A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #504bd6;
/* rgb */ color: rgb(80, 75, 214);
/* oklch */ color: oklch(50.6% 0.206 277.7);
Tailwind
colors: {
  custom: {
    50: '#907ee4',
    500: '#504bd6',
    950: '#000000',
  },
}
SCSS
$custom: #504bd6;
$custom-light: #907ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#504bd6",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 214
  },
  "hsl": {
    "h": 242.158,
    "s": 62.896,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50552,
    "c": 0.2059,
    "h": 277.7
  },
  "luminance": 0.11593
}

Semantic roles & 50–950 ramp

primary
#504BD6
secondary
#D9DBA2
accent
#E642E0
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #504BD6

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

Preview Lab → · Contrast checker → · Palette generator →

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