#504BC6#504BC6

#504BC6 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 49.2% C 0.185 H 278.9°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#504BC6
RGBrgb(80, 75, 198)
HSLhsl(242, 52%, 54%)
HSVhsv(242, 62%, 78%)
CMYKcmyk(59.6%, 62.1%, 0%, 22.4%)
CIE-LABlab(39.26, 37.95, -63.67)
CIE-LCHlch(39.26, 74.12, 300.80°)
OKLaboklab(49.21% 0.0288 -0.1831)
OKLCHoklch(49.21% 0.185 278.9)
XYZxyz(16.0141, 10.8137, 54.6585)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BC6 #C1C64B
analogous
#4B83C6 #504BC6 #8D4BC6
triadic
#504BC6 #C6504B #4BC650
tetradic
#504BC6 #C64B83 #C1C64B #4BC68D
square
#504BC6 #C64B83 #C1C64B #4BC68D
split-complementary
#504BC6 #C68D4B #83C64B
monochromatic
#272472 #3733A1 #504BC6 #7D79D5 #AAA8E3

Accessibility & contrast

On white

6.64
#504BC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#504BC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BC6
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BC6#FFFFFF#000000##FFFFFF
##504BC61.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CA
Deuteranopia (green-blind)
#0058C4
Tritanopia (blue-blind)
#006981
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #504bc6;
/* rgb */ color: rgb(80, 75, 198);
/* oklch */ color: oklch(49.2% 0.185 278.9);
Tailwind
colors: {
  custom: {
    50: '#8d7ed8',
    500: '#504bc6',
    950: '#000000',
  },
}
SCSS
$custom: #504bc6;
$custom-light: #8d7ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#504bc6",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 198
  },
  "hsl": {
    "h": 242.439,
    "s": 51.899,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49206,
    "c": 0.18537,
    "h": 278.9
  },
  "luminance": 0.10815
}

Semantic roles & 50–950 ramp

primary
#504BC6
secondary
#CFD19C
accent
#DB4CD6
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504BC6

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

Preview Lab → · Contrast checker → · Palette generator →

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