#504CCF#504CCF

#504CCF is a mid, vivid blue. Relative luminance 0.114; OKLCH L 50.1% C 0.196 H 278.0°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#504CCF
RGBrgb(80, 76, 207)
HSLhsl(242, 58%, 55%)
HSVhsv(242, 63%, 81%)
CMYKcmyk(61.4%, 63.3%, 0%, 18.8%)
CIE-LABlab(40.21, 40.26, -67.34)
CIE-LCHlch(40.21, 78.46, 300.88°)
OKLaboklab(50.12% 0.0273 -0.1939)
OKLCHoklch(50.12% 0.196 278)
XYZxyz(17.1516, 11.3780, 60.3117)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CCF #CBCF4C
analogous
#4C89CF #504CCF #914CCF
triadic
#504CCF #CF504C #4CCF50
tetradic
#504CCF #CF4C89 #CBCF4C #4CCF91
square
#504CCF #CF4C89 #CBCF4C #4CCF91
split-complementary
#504CCF #CF914C #89CF4C
monochromatic
#25227F #332FAF #504CCF #7F7CDC #AEADE9

Accessibility & contrast

On white

6.41
#504CCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#504CCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CCF
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CCF#FFFFFF#000000##FFFFFF
##504CCF1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D3
Deuteranopia (green-blind)
#0059CC
Tritanopia (blue-blind)
#006D86
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #504ccf;
/* rgb */ color: rgb(80, 76, 207);
/* oklch */ color: oklch(50.1% 0.196 278.0);
Tailwind
colors: {
  custom: {
    50: '#8e7edf',
    500: '#504ccf',
    950: '#000000',
  },
}
SCSS
$custom: #504ccf;
$custom-light: #8e7edf;
$custom-dark: #000000;
JSON
{
  "hex": "#504ccf",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 207
  },
  "hsl": {
    "h": 241.832,
    "s": 57.709,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50121,
    "c": 0.19582,
    "h": 278
  },
  "luminance": 0.11379
}

Semantic roles & 50–950 ramp

primary
#504CCF
secondary
#D5D7A0
accent
#E147DC
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #504CCF

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

Preview Lab → · Contrast checker → · Palette generator →

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