#504FBA#504FBA

#504FBA is a mid, vivid blue. Relative luminance 0.108; OKLCH L 49.0% C 0.164 H 278.9°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#504FBA
RGBrgb(80, 79, 186)
HSLhsl(241, 44%, 52%)
HSVhsv(241, 58%, 73%)
CMYKcmyk(57%, 57.5%, 0%, 27.1%)
CIE-LABlab(39.31, 31.57, -56.58)
CIE-LCHlch(39.31, 64.80, 299.16°)
OKLaboklab(48.96% 0.0253 -0.1623)
OKLCHoklch(48.96% 0.164 278.9)
XYZxyz(14.9644, 10.8416, 47.7489)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FBA #B9BA4F
analogous
#4F84BA #504FBA #864FBA
triadic
#504FBA #BA504F #4FBA50
tetradic
#504FBA #BA4F84 #B9BA4F #4FBA86
square
#504FBA #BA4F84 #B9BA4F #4FBA86
split-complementary
#504FBA #BA864F #84BA4F
monochromatic
#292866 #3A3992 #504FBA #7C7BCB #A7A7DC

Accessibility & contrast

On white

6.63
#504FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#504FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FBA
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FBA#FFFFFF#000000##FFFFFF
##504FBA1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#0058B8
Tritanopia (blue-blind)
#14687D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #504fba;
/* rgb */ color: rgb(80, 79, 186);
/* oklch */ color: oklch(49.0% 0.164 278.9);
Tailwind
colors: {
  custom: {
    50: '#8a80cf',
    500: '#504fba',
    950: '#000000',
  },
}
SCSS
$custom: #504fba;
$custom-light: #8a80cf;
$custom-dark: #000000;
JSON
{
  "hex": "#504fba",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 186
  },
  "hsl": {
    "h": 240.561,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48957,
    "c": 0.16424,
    "h": 278.9
  },
  "luminance": 0.10843
}

Semantic roles & 50–950 ramp

primary
#504FBA
secondary
#C9CA9B
accent
#D354D2
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #504FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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