#504FCB#504FCB

#504FCB is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.3% C 0.187 H 277.7°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#504FCB
RGBrgb(80, 79, 203)
HSLhsl(240, 54%, 55%)
HSVhsv(240, 61%, 80%)
CMYKcmyk(60.6%, 61.1%, 0%, 20.4%)
CIE-LABlab(40.59, 37.14, -64.41)
CIE-LCHlch(40.59, 74.36, 299.97°)
OKLaboklab(50.3% 0.0249 -0.1853)
OKLCHoklch(50.3% 0.187 277.7)
XYZxyz(16.8803, 11.6080, 57.8394)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FCB #CACB4F
analogous
#4F8CCB #504FCB #8E4FCB
triadic
#504FCB #CB504F #4FCB50
tetradic
#504FCB #CB4F8C #CACB4F #4FCB8E
square
#504FCB #CB4F8C #CACB4F #4FCB8E
split-complementary
#504FCB #CB8E4F #8CCB4F
monochromatic
#25247B #3332AA #504FCB #7F7ED9 #AEADE7

Accessibility & contrast

On white

6.32
#504FCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#504FCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FCB
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FCB#FFFFFF#000000##FFFFFF
##504FCB1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#006E85
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #504fcb;
/* rgb */ color: rgb(80, 79, 203);
/* oklch */ color: oklch(50.3% 0.187 277.7);
Tailwind
colors: {
  custom: {
    50: '#8d80dc',
    500: '#504fcb',
    950: '#000000',
  },
}
SCSS
$custom: #504fcb;
$custom-light: #8d80dc;
$custom-dark: #000000;
JSON
{
  "hex": "#504fcb",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 203
  },
  "hsl": {
    "h": 240.484,
    "s": 54.386,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50298,
    "c": 0.18698,
    "h": 277.7
  },
  "luminance": 0.11609
}

Semantic roles & 50–950 ramp

primary
#504FCB
secondary
#D4D5A1
accent
#DE4ADD
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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