#505EA7#505EA7

#505EA7 is a mid, moderate blue. Relative luminance 0.125; OKLCH L 50.6% C 0.117 H 273.4°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#505EA7
RGBrgb(80, 94, 167)
HSLhsl(230, 35%, 48%)
HSVhsv(230, 52%, 65%)
CMYKcmyk(52.1%, 43.7%, 0%, 34.5%)
CIE-LABlab(42.00, 15.83, -41.07)
CIE-LCHlch(42.00, 44.02, 291.08°)
OKLaboklab(50.59% 0.0068 -0.1166)
OKLCHoklch(50.59% 0.117 273.4)
XYZxyz(14.2838, 12.5000, 38.2118)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505EA7 #A79950
analogous
#5089A7 #505EA7 #6D50A7
triadic
#505EA7 #A7505E #5EA750
tetradic
#505EA7 #A75089 #A79950 #50A76D
square
#505EA7 #A75089 #A79950 #50A76D
split-complementary
#505EA7 #A76D50 #89A750
monochromatic
#282F54 #3C477E #505EA7 #7782BE #A0A8D1

Accessibility & contrast

On white

6.00
#505EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#505EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505EA7
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505EA7#FFFFFF#000000##FFFFFF
##505EA71.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4067AA
Deuteranopia (green-blind)
#3760A5
Tritanopia (blue-blind)
#2A6E7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #505ea7;
/* rgb */ color: rgb(80, 94, 167);
/* oklch */ color: oklch(50.6% 0.117 273.4);
Tailwind
colors: {
  custom: {
    50: '#878bc1',
    500: '#505ea7',
    950: '#000000',
  },
}
SCSS
$custom: #505ea7;
$custom-light: #878bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#505ea7",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 167
  },
  "hsl": {
    "h": 230.345,
    "s": 35.223,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50588,
    "c": 0.11677,
    "h": 273.4
  },
  "luminance": 0.12501
}

Semantic roles & 50–950 ramp

primary
#505EA7
secondary
#BFB894
accent
#B95DCB
background
#F8F8FB
surface
#F0F0F7
border
#CBCBD0
text
#0C0C12
muted
#7D7D81

Preview Lab

Preview with #505EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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