#505397#505397

#505397 is a mid, moderate blue. Relative luminance 0.101; OKLCH L 47.3% C 0.108 H 279.5°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#505397
RGBrgb(80, 83, 151)
HSLhsl(237, 31%, 45%)
HSVhsv(237, 47%, 59%)
CMYKcmyk(47%, 45%, 0%, 40.8%)
CIE-LABlab(38.07, 17.69, -37.78)
CIE-LCHlch(38.07, 41.71, 295.09°)
OKLaboklab(47.29% 0.0179 -0.107)
OKLCHoklch(47.29% 0.108 279.5)
XYZxyz(11.9857, 10.1257, 30.5951)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505397 #979450
analogous
#507697 #505397 #705097
triadic
#505397 #975053 #539750
tetradic
#505397 #975076 #979450 #509770
square
#505397 #975076 #979450 #509770
split-complementary
#505397 #977050 #769750
monochromatic
#262747 #3B3D6F #505397 #7173B4 #999BC9

Accessibility & contrast

On white

6.94
#505397 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#505397 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505397
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505397#FFFFFF#000000##FFFFFF
##5053971.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385C9A
Deuteranopia (green-blind)
#335795
Tritanopia (blue-blind)
#37616D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #505397;
/* rgb */ color: rgb(80, 83, 151);
/* oklch */ color: oklch(47.3% 0.108 279.5);
Tailwind
colors: {
  custom: {
    50: '#8583b6',
    500: '#505397',
    950: '#000000',
  },
}
SCSS
$custom: #505397;
$custom-light: #8583b6;
$custom-dark: #000000;
JSON
{
  "hex": "#505397",
  "rgb": {
    "r": 80,
    "g": 83,
    "b": 151
  },
  "hsl": {
    "h": 237.465,
    "s": 30.736,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47291,
    "c": 0.10847,
    "h": 279.5
  },
  "luminance": 0.10126
}

Semantic roles & 50–950 ramp

primary
#505397
secondary
#B6B48D
accent
#C361C7
background
#F8F8FB
surface
#F0EFF6
border
#CBCAD0
text
#0B0A11
muted
#7C7C80

Preview Lab

Preview with #505397

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

Preview Lab → · Contrast checker → · Palette generator →

#505397 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva