#505AD4#505AD4

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

Color values

HEX#505AD4
RGBrgb(80, 90, 212)
HSLhsl(235, 61%, 57%)
HSVhsv(235, 62%, 83%)
CMYKcmyk(62.3%, 57.5%, 0%, 16.9%)
CIE-LABlab(43.90, 33.36, -64.20)
CIE-LCHlch(43.90, 72.35, 297.46°)
OKLaboklab(52.96% 0.0149 -0.1846)
OKLCHoklch(52.96% 0.185 274.6)
XYZxyz(18.8442, 13.7697, 63.9394)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505AD4 #D4CA50
analogous
#509CD4 #505AD4 #8850D4
triadic
#505AD4 #D4505A #5AD450
tetradic
#505AD4 #D4509C #D4CA50 #50D488
square
#505AD4 #D4509C #D4CA50 #50D488
split-complementary
#505AD4 #D48850 #9CD450
monochromatic
#212988 #2E38B9 #505AD4 #8188E0 #B2B7EC

Accessibility & contrast

On white

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

On black

3.75
#505AD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##505AD4#FFFFFF#000000##FFFFFF
##505AD41.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#0062D2
Tritanopia (blue-blind)
#00778E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #505ad4;
/* rgb */ color: rgb(80, 90, 212);
/* oklch */ color: oklch(53.0% 0.185 274.6);
Tailwind
colors: {
  custom: {
    50: '#8e88e2',
    500: '#505ad4',
    950: '#000000',
  },
}
SCSS
$custom: #505ad4;
$custom-light: #8e88e2;
$custom-dark: #000000;
JSON
{
  "hex": "#505ad4",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 212
  },
  "hsl": {
    "h": 235.455,
    "s": 60.55,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5296,
    "c": 0.1852,
    "h": 274.6
  },
  "luminance": 0.13771
}

Semantic roles & 50–950 ramp

primary
#505AD4
secondary
#DBD7A5
accent
#D844E4
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B15
muted
#7E7C84

Preview Lab

Preview with #505AD4

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

Preview Lab → · Contrast checker → · Palette generator →

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