#505EC6#505EC6

#505EC6 is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.7% C 0.161 H 273.8°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#505EC6
RGBrgb(80, 94, 198)
HSLhsl(233, 51%, 55%)
HSVhsv(233, 60%, 78%)
CMYKcmyk(59.6%, 52.5%, 0%, 22.4%)
CIE-LABlab(43.93, 26.15, -56.11)
CIE-LCHlch(43.93, 61.91, 294.99°)
OKLaboklab(52.67% 0.0106 -0.1607)
OKLCHoklch(52.67% 0.161 273.8)
XYZxyz(17.5007, 13.7867, 55.1540)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505EC6 #C6B850
analogous
#5099C6 #505EC6 #7D50C6
triadic
#505EC6 #C6505E #5EC650
tetradic
#505EC6 #C65099 #C6B850 #50C67D
square
#505EC6 #C65099 #C6B850 #50C67D
split-complementary
#505EC6 #C67D50 #99C650
monochromatic
#263075 #3542A4 #505EC6 #7E88D5 #ACB3E4

Accessibility & contrast

On white

5.59
#505EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#505EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505EC6
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505EC6#FFFFFF#000000##FFFFFF
##505EC61.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#206DCA
Deuteranopia (green-blind)
#0063C4
Tritanopia (blue-blind)
#007689
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #505ec6;
/* rgb */ color: rgb(80, 94, 198);
/* oklch */ color: oklch(52.7% 0.161 273.8);
Tailwind
colors: {
  custom: {
    50: '#8c8bd8',
    500: '#505ec6',
    950: '#000000',
  },
}
SCSS
$custom: #505ec6;
$custom-light: #8c8bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#505ec6",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 198
  },
  "hsl": {
    "h": 232.881,
    "s": 50.862,
    "l": 54.51
  },
  "oklch": {
    "l": 0.52668,
    "c": 0.1611,
    "h": 273.8
  },
  "luminance": 0.13788
}

Semantic roles & 50–950 ramp

primary
#505EC6
secondary
#D2CCA0
accent
#CA4DDA
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83

Preview Lab

Preview with #505EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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