#504DAF#504DAF

#504DAF is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.8% C 0.152 H 280.3°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#504DAF
RGBrgb(80, 77, 175)
HSLhsl(242, 39%, 49%)
HSVhsv(242, 56%, 69%)
CMYKcmyk(54.3%, 56%, 0%, 31.4%)
CIE-LABlab(38.03, 29.24, -52.17)
CIE-LCHlch(38.03, 59.80, 299.27°)
OKLaboklab(47.76% 0.0273 -0.1493)
OKLCHoklch(47.76% 0.152 280.3)
XYZxyz(13.6976, 10.1075, 41.7783)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DAF #ACAF4D
analogous
#4D7BAF #504DAF #814DAF
triadic
#504DAF #AF504D #4DAF50
tetradic
#504DAF #AF4D7B #ACAF4D #4DAF81
square
#504DAF #AF4D7B #ACAF4D #4DAF81
split-complementary
#504DAF #AF814D #7BAF4D
monochromatic
#29285A #3D3A85 #504DAF #7976C3 #A2A1D6

Accessibility & contrast

On white

6.95
#504DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#504DAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DAF
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DAF#FFFFFF#000000##FFFFFF
##504DAF1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#085DB2
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#256376
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #504daf;
/* rgb */ color: rgb(80, 77, 175);
/* oklch */ color: oklch(47.8% 0.152 280.3);
Tailwind
colors: {
  custom: {
    50: '#897fc8',
    500: '#504daf',
    950: '#000000',
  },
}
SCSS
$custom: #504daf;
$custom-light: #897fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#504daf",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 175
  },
  "hsl": {
    "h": 241.837,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47759,
    "c": 0.15178,
    "h": 280.3
  },
  "luminance": 0.10108
}

Semantic roles & 50–950 ramp

primary
#504DAF
secondary
#C1C395
accent
#CF59CB
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #504DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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