#505299#505299

#505299 is a mid, moderate blue. Relative luminance 0.100; OKLCH L 47.2% C 0.113 H 279.9°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#505299
RGBrgb(80, 82, 153)
HSLhsl(238, 31%, 46%)
HSVhsv(238, 48%, 60%)
CMYKcmyk(47.7%, 46.4%, 0%, 40%)
CIE-LABlab(37.91, 18.96, -39.23)
CIE-LCHlch(37.91, 43.57, 295.80°)
OKLaboklab(47.21% 0.0195 -0.1112)
OKLCHoklch(47.21% 0.113 279.9)
XYZxyz(12.0736, 10.0394, 31.4324)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505299 #999750
analogous
#507699 #505299 #725099
triadic
#505299 #995052 #529950
tetradic
#505299 #995076 #999750 #509972
square
#505299 #995076 #999750 #509972
split-complementary
#505299 #997250 #769950
monochromatic
#262749 #3B3C71 #505299 #7173B5 #999BCA

Accessibility & contrast

On white

6.98
#505299 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#505299 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505299
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505299#FFFFFF#000000##FFFFFF
##5052991.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355C9C
Deuteranopia (green-blind)
#305797
Tritanopia (blue-blind)
#36616E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #505299;
/* rgb */ color: rgb(80, 82, 153);
/* oklch */ color: oklch(47.2% 0.113 279.9);
Tailwind
colors: {
  custom: {
    50: '#8682b7',
    500: '#505299',
    950: '#000000',
  },
}
SCSS
$custom: #505299;
$custom-light: #8682b7;
$custom-dark: #000000;
JSON
{
  "hex": "#505299",
  "rgb": {
    "r": 80,
    "g": 82,
    "b": 153
  },
  "hsl": {
    "h": 238.356,
    "s": 31.33,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47212,
    "c": 0.11294,
    "h": 279.9
  },
  "luminance": 0.1004
}

Semantic roles & 50–950 ramp

primary
#505299
secondary
#B7B68E
accent
#C560C8
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0B0A11
muted
#7C7C80

Preview Lab

Preview with #505299

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

Preview Lab → · Contrast checker → · Palette generator →

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