#505DC4#505DC4

#505DC4 is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.3% C 0.160 H 274.1°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#505DC4
RGBrgb(80, 93, 196)
HSLhsl(233, 50%, 54%)
HSVhsv(233, 59%, 77%)
CMYKcmyk(59.2%, 52.6%, 0%, 23.1%)
CIE-LABlab(43.53, 26.11, -55.58)
CIE-LCHlch(43.53, 61.41, 295.16°)
OKLaboklab(52.33% 0.0114 -0.1592)
OKLCHoklch(52.33% 0.16 274.1)
XYZxyz(17.1832, 13.5184, 53.9177)
Luminance0.1352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505DC4 #C4B750
analogous
#5097C4 #505DC4 #7D50C4
triadic
#505DC4 #C4505D #5DC450
tetradic
#505DC4 #C45097 #C4B750 #50C47D
square
#505DC4 #C45097 #C4B750 #50C47D
split-complementary
#505DC4 #C47D50 #97C450
monochromatic
#272F73 #3642A1 #505DC4 #7E87D3 #ACB2E3

Accessibility & contrast

On white

5.67
#505DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#505DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505DC4
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505DC4#FFFFFF#000000##FFFFFF
##505DC41.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#206CC8
Deuteranopia (green-blind)
#0062C2
Tritanopia (blue-blind)
#007587
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #505dc4;
/* rgb */ color: rgb(80, 93, 196);
/* oklch */ color: oklch(52.3% 0.160 274.1);
Tailwind
colors: {
  custom: {
    50: '#8b8ad6',
    500: '#505dc4',
    950: '#000000',
  },
}
SCSS
$custom: #505dc4;
$custom-light: #8b8ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#505dc4",
  "rgb": {
    "r": 80,
    "g": 93,
    "b": 196
  },
  "hsl": {
    "h": 233.276,
    "s": 49.573,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52331,
    "c": 0.15962,
    "h": 274.1
  },
  "luminance": 0.1352
}

Semantic roles & 50–950 ramp

primary
#505DC4
secondary
#D1CB9F
accent
#CA4FD9
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #505DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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