#505AC4#505AC4

#505AC4 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.8% C 0.164 H 275.1°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#505AC4
RGBrgb(80, 90, 196)
HSLhsl(235, 50%, 54%)
HSVhsv(235, 59%, 77%)
CMYKcmyk(59.2%, 54.1%, 0%, 23.1%)
CIE-LABlab(42.77, 28.00, -56.82)
CIE-LCHlch(42.77, 63.35, 296.23°)
OKLaboklab(51.75% 0.0145 -0.1629)
OKLCHoklch(51.75% 0.164 275.1)
XYZxyz(16.9250, 13.0020, 53.8316)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505AC4 #C4BA50
analogous
#5094C4 #505AC4 #8050C4
triadic
#505AC4 #C4505A #5AC450
tetradic
#505AC4 #C45094 #C4BA50 #50C480
square
#505AC4 #C45094 #C4BA50 #50C480
split-complementary
#505AC4 #C48050 #94C450
monochromatic
#272D73 #363FA1 #505AC4 #7E85D3 #ACB0E3

Accessibility & contrast

On white

5.83
#505AC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#505AC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505AC4
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505AC4#FFFFFF#000000##FFFFFF
##505AC41.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#136AC8
Deuteranopia (green-blind)
#0060C2
Tritanopia (blue-blind)
#007386
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #505ac4;
/* rgb */ color: rgb(80, 90, 196);
/* oklch */ color: oklch(51.8% 0.164 275.1);
Tailwind
colors: {
  custom: {
    50: '#8b88d7',
    500: '#505ac4',
    950: '#000000',
  },
}
SCSS
$custom: #505ac4;
$custom-light: #8b88d7;
$custom-dark: #000000;
JSON
{
  "hex": "#505ac4",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 196
  },
  "hsl": {
    "h": 234.828,
    "s": 49.573,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51754,
    "c": 0.16353,
    "h": 275.1
  },
  "luminance": 0.13003
}

Semantic roles & 50–950 ramp

primary
#505AC4
secondary
#D1CC9F
accent
#CD4FD9
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #505AC4

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

Preview Lab → · Contrast checker → · Palette generator →

#505AC4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva