#505AB2#505AB2

#505AB2 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.5% C 0.138 H 275.4°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#505AB2
RGBrgb(80, 90, 178)
HSLhsl(234, 39%, 51%)
HSVhsv(234, 55%, 70%)
CMYKcmyk(55.1%, 49.4%, 0%, 30.2%)
CIE-LABlab(41.58, 21.99, -48.23)
CIE-LCHlch(41.58, 53.01, 294.51°)
OKLaboklab(50.48% 0.0131 -0.1376)
OKLCHoklch(50.48% 0.138 275.4)
XYZxyz(14.9977, 12.2311, 43.6814)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505AB2 #B2A850
analogous
#508BB2 #505AB2 #7750B2
triadic
#505AB2 #B2505A #5AB250
tetradic
#505AB2 #B2508B #B2A850 #50B277
square
#505AB2 #B2508B #B2A850 #50B277
split-complementary
#505AB2 #B27750 #8BB250
monochromatic
#292F5E #3C4489 #505AB2 #7A82C5 #A5AAD7

Accessibility & contrast

On white

6.09
#505AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#505AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505AB2
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505AB2#FFFFFF#000000##FFFFFF
##505AB21.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F66B5
Deuteranopia (green-blind)
#225EB0
Tritanopia (blue-blind)
#1E6E7D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #505ab2;
/* rgb */ color: rgb(80, 90, 178);
/* oklch */ color: oklch(50.5% 0.138 275.4);
Tailwind
colors: {
  custom: {
    50: '#8988c9',
    500: '#505ab2',
    950: '#000000',
  },
}
SCSS
$custom: #505ab2;
$custom-light: #8988c9;
$custom-dark: #000000;
JSON
{
  "hex": "#505ab2",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 178
  },
  "hsl": {
    "h": 233.878,
    "s": 38.889,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50483,
    "c": 0.13823,
    "h": 275.4
  },
  "luminance": 0.12232
}

Semantic roles & 50–950 ramp

primary
#505AB2
secondary
#C5C099
accent
#C359CF
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #505AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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