#504BBA#504BBA

#504BBA is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.2% C 0.169 H 280.0°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#504BBA
RGBrgb(80, 75, 186)
HSLhsl(243, 45%, 51%)
HSVhsv(243, 60%, 73%)
CMYKcmyk(57%, 59.7%, 0%, 27.1%)
CIE-LABlab(38.34, 34.05, -58.15)
CIE-LCHlch(38.34, 67.39, 300.35°)
OKLaboklab(48.24% 0.0293 -0.1669)
OKLCHoklch(48.24% 0.169 280)
XYZxyz(14.6845, 10.2818, 47.6556)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BBA #B5BA4B
analogous
#4B7DBA #504BBA #874BBA
triadic
#504BBA #BA504B #4BBA50
tetradic
#504BBA #BA4B7D #B5BA4B #4BBA87
square
#504BBA #BA4B7D #B5BA4B #4BBA87
split-complementary
#504BBA #BA874B #7DBA4B
monochromatic
#292664 #3B3790 #504BBA #7B77CB #A6A3DC

Accessibility & contrast

On white

6.87
#504BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#504BBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BBA
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BBA#FFFFFF#000000##FFFFFF
##504BBA1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#15667B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #504bba;
/* rgb */ color: rgb(80, 75, 186);
/* oklch */ color: oklch(48.2% 0.169 280.0);
Tailwind
colors: {
  custom: {
    50: '#8b7dd0',
    500: '#504bba',
    950: '#000000',
  },
}
SCSS
$custom: #504bba;
$custom-light: #8b7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#504bba",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 186
  },
  "hsl": {
    "h": 242.703,
    "s": 44.578,
    "l": 51.176
  },
  "oklch": {
    "l": 0.4824,
    "c": 0.16948,
    "h": 280
  },
  "luminance": 0.10283
}

Semantic roles & 50–950 ramp

primary
#504BBA
secondary
#C7C998
accent
#D454CE
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #504BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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