#505B97#505B97

#505B97 is a mid, moderate blue. Relative luminance 0.114; OKLCH L 49.0% C 0.097 H 274.4°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#505B97
RGBrgb(80, 91, 151)
HSLhsl(231, 31%, 45%)
HSVhsv(231, 47%, 59%)
CMYKcmyk(47%, 39.7%, 0%, 40.8%)
CIE-LABlab(40.28, 12.58, -34.27)
CIE-LCHlch(40.28, 36.50, 290.16°)
OKLaboklab(48.98% 0.0075 -0.0967)
OKLCHoklch(48.98% 0.097 274.4)
XYZxyz(12.6335, 11.4213, 30.8110)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505B97 #978C50
analogous
#507E97 #505B97 #685097
triadic
#505B97 #97505B #5B9750
tetradic
#505B97 #97507E #978C50 #509768
square
#505B97 #97507E #978C50 #509768
split-complementary
#505B97 #976850 #7E9750
monochromatic
#262B47 #3B436F #505B97 #717BB4 #99A0C9

Accessibility & contrast

On white

6.39
#505B97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#505B97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505B97
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505B97#FFFFFF#000000##FFFFFF
##505B971.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456299
Deuteranopia (green-blind)
#3F5C96
Tritanopia (blue-blind)
#366772
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #505b97;
/* rgb */ color: rgb(80, 91, 151);
/* oklch */ color: oklch(49.0% 0.097 274.4);
Tailwind
colors: {
  custom: {
    50: '#8589b6',
    500: '#505b97',
    950: '#000000',
  },
}
SCSS
$custom: #505b97;
$custom-light: #8589b6;
$custom-dark: #000000;
JSON
{
  "hex": "#505b97",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 151
  },
  "hsl": {
    "h": 230.704,
    "s": 30.736,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48983,
    "c": 0.09698,
    "h": 274.4
  },
  "luminance": 0.11422
}

Semantic roles & 50–950 ramp

primary
#505B97
secondary
#B6AF8D
accent
#B761C7
background
#F8F8FB
surface
#EFF0F6
border
#CACBD0
text
#0B0B11
muted
#7C7C80

Preview Lab

Preview with #505B97

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

Preview Lab → · Contrast checker → · Palette generator →

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