#505AC8#505AC8

#505AC8 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.0% C 0.169 H 275.0°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#505AC8
RGBrgb(80, 90, 200)
HSLhsl(235, 52%, 55%)
HSVhsv(235, 60%, 78%)
CMYKcmyk(60%, 55%, 0%, 21.6%)
CIE-LABlab(43.04, 29.34, -58.69)
CIE-LCHlch(43.04, 65.61, 296.56°)
OKLaboklab(52.05% 0.0146 -0.1684)
OKLCHoklch(52.05% 0.169 275)
XYZxyz(17.3864, 13.1866, 56.2614)
Luminance0.1319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505AC8 #C8BE50
analogous
#5096C8 #505AC8 #8250C8
triadic
#505AC8 #C8505A #5AC850
tetradic
#505AC8 #C85096 #C8BE50 #50C882
square
#505AC8 #C85096 #C8BE50 #50C882
split-complementary
#505AC8 #C88250 #96C850
monochromatic
#262D78 #343EA6 #505AC8 #7F86D7 #ADB2E5

Accessibility & contrast

On white

5.77
#505AC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#505AC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505AC8
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505AC8#FFFFFF#000000##FFFFFF
##505AC81.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#056BCC
Deuteranopia (green-blind)
#0061C6
Tritanopia (blue-blind)
#007488
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #505ac8;
/* rgb */ color: rgb(80, 90, 200);
/* oklch */ color: oklch(52.0% 0.169 275.0);
Tailwind
colors: {
  custom: {
    50: '#8c88d9',
    500: '#505ac8',
    950: '#000000',
  },
}
SCSS
$custom: #505ac8;
$custom-light: #8c88d9;
$custom-dark: #000000;
JSON
{
  "hex": "#505ac8",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 200
  },
  "hsl": {
    "h": 235,
    "s": 52.174,
    "l": 54.902
  },
  "oklch": {
    "l": 0.52049,
    "c": 0.16903,
    "h": 275
  },
  "luminance": 0.13188
}

Semantic roles & 50–950 ramp

primary
#505AC8
secondary
#D3CFA1
accent
#D04CDC
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #505AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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