#505EB4#505EB4

#505EB4 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.4% C 0.136 H 273.7°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#505EB4
RGBrgb(80, 94, 180)
HSLhsl(232, 40%, 51%)
HSVhsv(232, 56%, 71%)
CMYKcmyk(55.6%, 47.8%, 0%, 29.4%)
CIE-LABlab(42.77, 20.12, -47.49)
CIE-LCHlch(42.77, 51.58, 292.96°)
OKLaboklab(51.43% 0.0088 -0.1354)
OKLCHoklch(51.43% 0.136 273.7)
XYZxyz(15.5465, 13.0051, 44.8622)
Luminance0.1301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505EB4 #B4A650
analogous
#5090B4 #505EB4 #7450B4
triadic
#505EB4 #B4505E #5EB450
tetradic
#505EB4 #B45090 #B4A650 #50B474
square
#505EB4 #B45090 #B4A650 #50B474
split-complementary
#505EB4 #B47450 #90B450
monochromatic
#293160 #3C478B #505EB4 #7B85C6 #A6ADD9

Accessibility & contrast

On white

5.83
#505EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#505EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505EB4
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505EB4#FFFFFF#000000##FFFFFF
##505EB41.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3669B7
Deuteranopia (green-blind)
#2961B2
Tritanopia (blue-blind)
#1A7180
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #505eb4;
/* rgb */ color: rgb(80, 94, 180);
/* oklch */ color: oklch(51.4% 0.136 273.7);
Tailwind
colors: {
  custom: {
    50: '#898bcb',
    500: '#505eb4',
    950: '#000000',
  },
}
SCSS
$custom: #505eb4;
$custom-light: #898bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#505eb4",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 180
  },
  "hsl": {
    "h": 231.6,
    "s": 40,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51425,
    "c": 0.1357,
    "h": 273.7
  },
  "luminance": 0.13006
}

Semantic roles & 50–950 ramp

primary
#505EB4
secondary
#C6C09A
accent
#BF58D0
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #505EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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