#505EA2#505EA2

#505EA2 is a mid, moderate blue. Relative luminance 0.123; OKLCH L 50.3% C 0.109 H 273.1°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#505EA2
RGBrgb(80, 94, 162)
HSLhsl(230, 34%, 47%)
HSVhsv(230, 51%, 64%)
CMYKcmyk(50.6%, 42%, 0%, 36.5%)
CIE-LABlab(41.72, 14.20, -38.56)
CIE-LCHlch(41.72, 41.09, 290.22°)
OKLaboklab(50.28% 0.0059 -0.1092)
OKLCHoklch(50.28% 0.109 273.1)
XYZxyz(13.8305, 12.3187, 35.8244)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505EA2 #A29450
analogous
#5087A2 #505EA2 #6B50A2
triadic
#505EA2 #A2505E #5EA250
tetradic
#505EA2 #A25087 #A29450 #50A26B
square
#505EA2 #A25087 #A29450 #50A26B
split-complementary
#505EA2 #A26B50 #87A250
monochromatic
#282E50 #3C4679 #505EA2 #7581BB #9EA6CF

Accessibility & contrast

On white

6.06
#505EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#505EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505EA2
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505EA2#FFFFFF#000000##FFFFFF
##505EA21.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4366A5
Deuteranopia (green-blind)
#3B5FA0
Tritanopia (blue-blind)
#2E6C78
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #505ea2;
/* rgb */ color: rgb(80, 94, 162);
/* oklch */ color: oklch(50.3% 0.109 273.1);
Tailwind
colors: {
  custom: {
    50: '#868bbe',
    500: '#505ea2',
    950: '#000000',
  },
}
SCSS
$custom: #505ea2;
$custom-light: #868bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#505ea2",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 229.756,
    "s": 33.884,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50281,
    "c": 0.10936,
    "h": 273.1
  },
  "luminance": 0.1232
}

Semantic roles & 50–950 ramp

primary
#505EA2
secondary
#BCB592
accent
#B85ECA
background
#F8F8FB
surface
#F0F0F7
border
#CBCBD0
text
#0C0C12
muted
#7D7D81

Preview Lab

Preview with #505EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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