#505FC4#505FC4

#505FC4 is a mid, vivid blue. Relative luminance 0.139; OKLCH L 52.7% C 0.157 H 273.4°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#505FC4
RGBrgb(80, 95, 196)
HSLhsl(232, 50%, 54%)
HSVhsv(232, 59%, 77%)
CMYKcmyk(59.2%, 51.5%, 0%, 23.1%)
CIE-LABlab(44.05, 24.85, -54.75)
CIE-LCHlch(44.05, 60.12, 294.41°)
OKLaboklab(52.72% 0.0094 -0.1567)
OKLCHoklch(52.72% 0.157 273.4)
XYZxyz(17.3610, 13.8741, 53.9769)
Luminance0.1388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505FC4 #C4B550
analogous
#5099C4 #505FC4 #7B50C4
triadic
#505FC4 #C4505F #5FC450
tetradic
#505FC4 #C45099 #C4B550 #50C47B
square
#505FC4 #C45099 #C4B550 #50C47B
split-complementary
#505FC4 #C47B50 #99C450
monochromatic
#273173 #3644A1 #505FC4 #7E89D3 #ACB3E3

Accessibility & contrast

On white

5.56
#505FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#505FC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505FC4
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505FC4#FFFFFF#000000##FFFFFF
##505FC41.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#266DC8
Deuteranopia (green-blind)
#0763C2
Tritanopia (blue-blind)
#007688
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #505fc4;
/* rgb */ color: rgb(80, 95, 196);
/* oklch */ color: oklch(52.7% 0.157 273.4);
Tailwind
colors: {
  custom: {
    50: '#8b8cd6',
    500: '#505fc4',
    950: '#000000',
  },
}
SCSS
$custom: #505fc4;
$custom-light: #8b8cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#505fc4",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 196
  },
  "hsl": {
    "h": 232.241,
    "s": 49.573,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5272,
    "c": 0.15702,
    "h": 273.4
  },
  "luminance": 0.13875
}

Semantic roles & 50–950 ramp

primary
#505FC4
secondary
#D1CA9F
accent
#C74FD9
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83

Preview Lab

Preview with #505FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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