#504FBB#504FBB

#504FBB is a mid, vivid blue. Relative luminance 0.109; OKLCH L 49.0% C 0.166 H 278.8°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#504FBB
RGBrgb(80, 79, 187)
HSLhsl(241, 44%, 52%)
HSVhsv(241, 58%, 73%)
CMYKcmyk(57.2%, 57.8%, 0%, 26.7%)
CIE-LABlab(39.38, 31.90, -57.05)
CIE-LCHlch(39.38, 65.36, 299.21°)
OKLaboklab(49.03% 0.0253 -0.1637)
OKLCHoklch(49.03% 0.166 278.8)
XYZxyz(15.0710, 10.8843, 48.3108)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FBB #BABB4F
analogous
#4F84BB #504FBB #864FBB
triadic
#504FBB #BB504F #4FBB50
tetradic
#504FBB #BB4F84 #BABB4F #4FBB86
square
#504FBB #BB4F84 #BABB4F #4FBB86
split-complementary
#504FBB #BB864F #84BB4F
monochromatic
#292868 #3A3994 #504FBB #7C7BCC #A8A7DD

Accessibility & contrast

On white

6.61
#504FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#504FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FBB
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FBB#FFFFFF#000000##FFFFFF
##504FBB1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#0058B9
Tritanopia (blue-blind)
#12687D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #504fbb;
/* rgb */ color: rgb(80, 79, 187);
/* oklch */ color: oklch(49.0% 0.166 278.8);
Tailwind
colors: {
  custom: {
    50: '#8b80d0',
    500: '#504fbb',
    950: '#000000',
  },
}
SCSS
$custom: #504fbb;
$custom-light: #8b80d0;
$custom-dark: #000000;
JSON
{
  "hex": "#504fbb",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 187
  },
  "hsl": {
    "h": 240.556,
    "s": 44.262,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49033,
    "c": 0.1656,
    "h": 278.8
  },
  "luminance": 0.10885
}

Semantic roles & 50–950 ramp

primary
#504FBB
secondary
#CACA9B
accent
#D454D3
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #504FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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