#504BB2#504BB2

#504BB2 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.6% C 0.159 H 280.7°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#504BB2
RGBrgb(80, 75, 178)
HSLhsl(243, 41%, 50%)
HSVhsv(243, 58%, 70%)
CMYKcmyk(55.1%, 57.9%, 0%, 30.2%)
CIE-LABlab(37.75, 31.46, -54.40)
CIE-LCHlch(37.75, 62.84, 300.04°)
OKLaboklab(47.62% 0.0294 -0.1559)
OKLCHoklch(47.62% 0.159 280.7)
XYZxyz(13.8577, 9.9511, 43.3014)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504BB2 #ADB24B
analogous
#4B79B2 #504BB2 #844BB2
triadic
#504BB2 #B2504B #4BB250
tetradic
#504BB2 #B24B79 #ADB24B #4BB284
square
#504BB2 #B24B79 #ADB24B #4BB284
split-complementary
#504BB2 #B2844B #79B24B
monochromatic
#29275C #3D3987 #504BB2 #7975C5 #A3A0D7

Accessibility & contrast

On white

7.02
#504BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#504BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504BB2
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504BB2#FFFFFF#000000##FFFFFF
##504BB21.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#226377
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #504bb2;
/* rgb */ color: rgb(80, 75, 178);
/* oklch */ color: oklch(47.6% 0.159 280.7);
Tailwind
colors: {
  custom: {
    50: '#897dca',
    500: '#504bb2',
    950: '#000000',
  },
}
SCSS
$custom: #504bb2;
$custom-light: #897dca;
$custom-dark: #000000;
JSON
{
  "hex": "#504bb2",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 242.913,
    "s": 40.711,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47619,
    "c": 0.15863,
    "h": 280.7
  },
  "luminance": 0.09952
}

Semantic roles & 50–950 ramp

primary
#504BB2
secondary
#C2C495
accent
#D157CB
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #504BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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