#504BCB#504BCB

#504BCB is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.6% C 0.192 H 278.5°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#504BCB
RGBrgb(80, 75, 203)
HSLhsl(242, 55%, 55%)
HSVhsv(242, 63%, 80%)
CMYKcmyk(60.6%, 63.1%, 0%, 20.4%)
CIE-LABlab(39.66, 39.57, -65.92)
CIE-LCHlch(39.66, 76.88, 300.97°)
OKLaboklab(49.62% 0.0284 -0.1897)
OKLCHoklch(49.62% 0.192 278.5)
XYZxyz(16.6004, 11.0482, 57.7461)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BCB #C6CB4B
analogous
#4B86CB #504BCB #904BCB
triadic
#504BCB #CB504B #4BCB50
tetradic
#504BCB #CB4B86 #C6CB4B #4BCB90
square
#504BCB #CB4B86 #C6CB4B #4BCB90
split-complementary
#504BCB #CB904B #86CB4B
monochromatic
#262379 #3531A8 #504BCB #7E7AD9 #ACAAE6

Accessibility & contrast

On white

6.54
#504BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#504BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BCB
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BCB#FFFFFF#000000##FFFFFF
##504BCB1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#0058C8
Tritanopia (blue-blind)
#006B84
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #504bcb;
/* rgb */ color: rgb(80, 75, 203);
/* oklch */ color: oklch(49.6% 0.192 278.5);
Tailwind
colors: {
  custom: {
    50: '#8e7edc',
    500: '#504bcb',
    950: '#000000',
  },
}
SCSS
$custom: #504bcb;
$custom-light: #8e7edc;
$custom-dark: #000000;
JSON
{
  "hex": "#504bcb",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 203
  },
  "hsl": {
    "h": 242.344,
    "s": 55.172,
    "l": 54.51
  },
  "oklch": {
    "l": 0.4962,
    "c": 0.19187,
    "h": 278.5
  },
  "luminance": 0.11049
}

Semantic roles & 50–950 ramp

primary
#504BCB
secondary
#D2D49E
accent
#DF49D9
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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