#505AAF#505AAF

#505AAF is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.3% C 0.134 H 275.5°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#505AAF
RGBrgb(80, 90, 175)
HSLhsl(234, 37%, 50%)
HSVhsv(234, 54%, 69%)
CMYKcmyk(54.3%, 48.6%, 0%, 31.4%)
CIE-LABlab(41.39, 21.00, -46.76)
CIE-LCHlch(41.39, 51.26, 294.18°)
OKLaboklab(50.28% 0.0127 -0.1333)
OKLCHoklch(50.28% 0.134 275.5)
XYZxyz(14.6998, 12.1120, 42.1124)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505AAF #AFA550
analogous
#508AAF #505AAF #7550AF
triadic
#505AAF #AF505A #5AAF50
tetradic
#505AAF #AF508A #AFA550 #50AF75
square
#505AAF #AF508A #AFA550 #50AF75
split-complementary
#505AAF #AF7550 #8AAF50
monochromatic
#2A2F5B #3D4485 #505AAF #7A82C2 #A4A9D5

Accessibility & contrast

On white

6.14
#505AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#505AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505AAF
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505AAF#FFFFFF#000000##FFFFFF
##505AAF1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3266B2
Deuteranopia (green-blind)
#265EAD
Tritanopia (blue-blind)
#226D7C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #505aaf;
/* rgb */ color: rgb(80, 90, 175);
/* oklch */ color: oklch(50.3% 0.134 275.5);
Tailwind
colors: {
  custom: {
    50: '#8888c7',
    500: '#505aaf',
    950: '#000000',
  },
}
SCSS
$custom: #505aaf;
$custom-light: #8888c7;
$custom-dark: #000000;
JSON
{
  "hex": "#505aaf",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 175
  },
  "hsl": {
    "h": 233.684,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.50281,
    "c": 0.13391,
    "h": 275.5
  },
  "luminance": 0.12113
}

Semantic roles & 50–950 ramp

primary
#505AAF
secondary
#C3BE98
accent
#C15BCD
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #505AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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