#505EB7#505EB7

#505EB7 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.6% C 0.140 H 273.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#505EB7
RGBrgb(80, 94, 183)
HSLhsl(232, 42%, 52%)
HSVhsv(232, 56%, 72%)
CMYKcmyk(56.3%, 48.6%, 0%, 28.2%)
CIE-LABlab(42.96, 21.12, -48.95)
CIE-LCHlch(42.96, 53.31, 293.34°)
OKLaboklab(51.63% 0.0092 -0.1397)
OKLCHoklch(51.63% 0.14 273.8)
XYZxyz(15.8554, 13.1286, 46.4891)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505EB7 #B7A950
analogous
#5092B7 #505EB7 #7650B7
triadic
#505EB7 #B7505E #5EB750
tetradic
#505EB7 #B75092 #B7A950 #50B776
square
#505EB7 #B75092 #B7A950 #50B776
split-complementary
#505EB7 #B77650 #92B750
monochromatic
#293164 #3B468F #505EB7 #7B86C9 #A7AEDB

Accessibility & contrast

On white

5.79
#505EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#505EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505EB7
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505EB7#FFFFFF#000000##FFFFFF
##505EB71.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#336ABA
Deuteranopia (green-blind)
#2461B5
Tritanopia (blue-blind)
#157282
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #505eb7;
/* rgb */ color: rgb(80, 94, 183);
/* oklch */ color: oklch(51.6% 0.140 273.8);
Tailwind
colors: {
  custom: {
    50: '#898bcd',
    500: '#505eb7',
    950: '#000000',
  },
}
SCSS
$custom: #505eb7;
$custom-light: #898bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#505eb7",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 183
  },
  "hsl": {
    "h": 231.845,
    "s": 41.7,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51625,
    "c": 0.14,
    "h": 273.8
  },
  "luminance": 0.1313
}

Semantic roles & 50–950 ramp

primary
#505EB7
secondary
#C8C29B
accent
#C156D2
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #505EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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