#504FBF#504FBF

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

Color values

HEX#504FBF
RGBrgb(80, 79, 191)
HSLhsl(241, 47%, 53%)
HSVhsv(241, 59%, 75%)
CMYKcmyk(58.1%, 58.6%, 0%, 25.1%)
CIE-LABlab(39.68, 33.21, -58.92)
CIE-LCHlch(39.68, 67.63, 299.41°)
OKLaboklab(49.34% 0.0253 -0.1691)
OKLCHoklch(49.34% 0.171 278.5)
XYZxyz(15.5052, 11.0579, 50.5975)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FBF #BEBF4F
analogous
#4F86BF #504FBF #884FBF
triadic
#504FBF #BF504F #4FBF50
tetradic
#504FBF #BF4F86 #BEBF4F #4FBF88
square
#504FBF #BF4F86 #BEBF4F #4FBF88
split-complementary
#504FBF #BF884F #86BF4F
monochromatic
#28276C #393899 #504FBF #7D7CCF #A9A9E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##504FBF#FFFFFF#000000##FFFFFF
##504FBF1.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)
#0062C3
Deuteranopia (green-blind)
#0059BD
Tritanopia (blue-blind)
#056A7F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #504fbf;
/* rgb */ color: rgb(80, 79, 191);
/* oklch */ color: oklch(49.3% 0.171 278.5);
Tailwind
colors: {
  custom: {
    50: '#8b80d3',
    500: '#504fbf',
    950: '#000000',
  },
}
SCSS
$custom: #504fbf;
$custom-light: #8b80d3;
$custom-dark: #000000;
JSON
{
  "hex": "#504fbf",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 191
  },
  "hsl": {
    "h": 240.536,
    "s": 46.667,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49343,
    "c": 0.17102,
    "h": 278.5
  },
  "luminance": 0.11059
}

Semantic roles & 50–950 ramp

primary
#504FBF
secondary
#CDCD9D
accent
#D651D5
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #504FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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