#504BCF#504BCF

#504BCF is a mid, vivid blue. Relative luminance 0.112; OKLCH L 50.0% C 0.197 H 278.2°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#504BCF
RGBrgb(80, 75, 207)
HSLhsl(242, 58%, 55%)
HSVhsv(242, 64%, 81%)
CMYKcmyk(61.4%, 63.8%, 0%, 18.8%)
CIE-LABlab(39.98, 40.86, -67.71)
CIE-LCHlch(39.98, 79.08, 301.11°)
OKLaboklab(49.96% 0.0281 -0.195)
OKLCHoklch(49.96% 0.197 278.2)
XYZxyz(17.0832, 11.2413, 60.2889)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BCF #CACF4B
analogous
#4B88CF #504BCF #924BCF
triadic
#504BCF #CF504B #4BCF50
tetradic
#504BCF #CF4B88 #CACF4B #4BCF92
square
#504BCF #CF4B88 #CACF4B #4BCF92
split-complementary
#504BCF #CF924B #88CF4B
monochromatic
#25227E #332EAE #504BCF #7F7BDC #AEACE9

Accessibility & contrast

On white

6.46
#504BCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#504BCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504BCF
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BCF#FFFFFF#000000##FFFFFF
##504BCF1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #504bcf;
/* rgb */ color: rgb(80, 75, 207);
/* oklch */ color: oklch(50.0% 0.197 278.2);
Tailwind
colors: {
  custom: {
    50: '#8e7edf',
    500: '#504bcf',
    950: '#000000',
  },
}
SCSS
$custom: #504bcf;
$custom-light: #8e7edf;
$custom-dark: #000000;
JSON
{
  "hex": "#504bcf",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 207
  },
  "hsl": {
    "h": 242.273,
    "s": 57.895,
    "l": 55.294
  },
  "oklch": {
    "l": 0.49956,
    "c": 0.19701,
    "h": 278.2
  },
  "luminance": 0.11243
}

Semantic roles & 50–950 ramp

primary
#504BCF
secondary
#D4D69F
accent
#E147DB
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #504BCF

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

Preview Lab → · Contrast checker → · Palette generator →

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