#505A97#505A97

#505A97 is a mid, moderate blue. Relative luminance 0.113; OKLCH L 48.8% C 0.098 H 275.1°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#505A97
RGBrgb(80, 90, 151)
HSLhsl(232, 31%, 45%)
HSVhsv(232, 47%, 59%)
CMYKcmyk(47%, 40.4%, 0%, 40.8%)
CIE-LABlab(40.00, 13.22, -34.71)
CIE-LCHlch(40.00, 37.14, 290.84°)
OKLaboklab(48.77% 0.0088 -0.098)
OKLCHoklch(48.77% 0.098 275.1)
XYZxyz(12.5486, 11.2515, 30.7827)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505A97 #978D50
analogous
#507E97 #505A97 #695097
triadic
#505A97 #97505A #5A9750
tetradic
#505A97 #97507E #978D50 #509769
square
#505A97 #97507E #978D50 #509769
split-complementary
#505A97 #976950 #7E9750
monochromatic
#262A47 #3B426F #505A97 #717AB4 #999FC9

Accessibility & contrast

On white

6.46
#505A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#505A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505A97
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505A97#FFFFFF#000000##FFFFFF
##505A971.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#436199
Deuteranopia (green-blind)
#3D5C96
Tritanopia (blue-blind)
#376771
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #505a97;
/* rgb */ color: rgb(80, 90, 151);
/* oklch */ color: oklch(48.8% 0.098 275.1);
Tailwind
colors: {
  custom: {
    50: '#8588b6',
    500: '#505a97',
    950: '#000000',
  },
}
SCSS
$custom: #505a97;
$custom-light: #8588b6;
$custom-dark: #000000;
JSON
{
  "hex": "#505a97",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 151
  },
  "hsl": {
    "h": 231.549,
    "s": 30.736,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48768,
    "c": 0.09838,
    "h": 275.1
  },
  "luminance": 0.11252
}

Semantic roles & 50–950 ramp

primary
#505A97
secondary
#B6B08D
accent
#B961C7
background
#F8F8FB
surface
#EFEFF6
border
#CACAD0
text
#0B0B11
muted
#7C7C80

Preview Lab

Preview with #505A97

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

Preview Lab → · Contrast checker → · Palette generator →

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