#504FA6#504FA6

#504FA6 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.5% C 0.136 H 280.4°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#504FA6
RGBrgb(80, 79, 166)
HSLhsl(241, 36%, 48%)
HSVhsv(241, 52%, 65%)
CMYKcmyk(51.8%, 52.4%, 0%, 34.9%)
CIE-LABlab(37.93, 25.05, -46.99)
CIE-LCHlch(37.93, 53.25, 298.07°)
OKLaboklab(47.49% 0.0246 -0.134)
OKLCHoklch(47.49% 0.136 280.4)
XYZxyz(12.9851, 10.0499, 37.3246)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FA6 #A5A64F
analogous
#4F79A6 #504FA6 #7B4FA6
triadic
#504FA6 #A6504F #4FA650
tetradic
#504FA6 #A64F79 #A5A64F #4FA67B
square
#504FA6 #A64F79 #A5A64F #4FA67B
split-complementary
#504FA6 #A67B4F #79A64F
monochromatic
#282853 #3C3B7D #504FA6 #7675BD #9F9ED1

Accessibility & contrast

On white

6.98
#504FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#504FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FA6
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FA6#FFFFFF#000000##FFFFFF
##504FA61.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225DA9
Deuteranopia (green-blind)
#1956A4
Tritanopia (blue-blind)
#2D6273
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #504fa6;
/* rgb */ color: rgb(80, 79, 166);
/* oklch */ color: oklch(47.5% 0.136 280.4);
Tailwind
colors: {
  custom: {
    50: '#8780c1',
    500: '#504fa6',
    950: '#000000',
  },
}
SCSS
$custom: #504fa6;
$custom-light: #8780c1;
$custom-dark: #000000;
JSON
{
  "hex": "#504fa6",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 240.69,
    "s": 35.51,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47487,
    "c": 0.13628,
    "h": 280.4
  },
  "luminance": 0.10051
}

Semantic roles & 50–950 ramp

primary
#504FA6
secondary
#BDBE93
accent
#CC5CCA
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #504FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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