#505AAA#505AAA

#505AAA is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.0% C 0.127 H 275.5°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#505AAA
RGBrgb(80, 90, 170)
HSLhsl(233, 36%, 49%)
HSVhsv(233, 53%, 67%)
CMYKcmyk(52.9%, 47.1%, 0%, 33.3%)
CIE-LABlab(41.09, 19.35, -44.30)
CIE-LCHlch(41.09, 48.35, 293.60°)
OKLaboklab(49.95% 0.0121 -0.1261)
OKLCHoklch(49.95% 0.127 275.5)
XYZxyz(14.2178, 11.9192, 39.5738)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505AAA #AAA050
analogous
#5087AA #505AAA #7350AA
triadic
#505AAA #AA505A #5AAA50
tetradic
#505AAA #AA5087 #AAA050 #50AA73
square
#505AAA #AA5087 #AAA050 #50AA73
split-complementary
#505AAA #AA7350 #87AA50
monochromatic
#292E57 #3C4480 #505AAA #7880BF #A1A7D3

Accessibility & contrast

On white

6.21
#505AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#505AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505AAA
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505AAA#FFFFFF#000000##FFFFFF
##505AAA1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3665AD
Deuteranopia (green-blind)
#2D5DA8
Tritanopia (blue-blind)
#286B7A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #505aaa;
/* rgb */ color: rgb(80, 90, 170);
/* oklch */ color: oklch(50.0% 0.127 275.5);
Tailwind
colors: {
  custom: {
    50: '#8788c4',
    500: '#505aaa',
    950: '#000000',
  },
}
SCSS
$custom: #505aaa;
$custom-light: #8788c4;
$custom-dark: #000000;
JSON
{
  "hex": "#505aaa",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 233.333,
    "s": 36,
    "l": 49.02
  },
  "oklch": {
    "l": 0.4995,
    "c": 0.12666,
    "h": 275.5
  },
  "luminance": 0.1192
}

Semantic roles & 50–950 ramp

primary
#505AAA
secondary
#C0BB96
accent
#C05CCC
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #505AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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