#505DC2#505DC2

#505DC2 is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.2% C 0.157 H 274.1°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#505DC2
RGBrgb(80, 93, 194)
HSLhsl(233, 48%, 54%)
HSVhsv(233, 59%, 76%)
CMYKcmyk(58.8%, 52.1%, 0%, 23.9%)
CIE-LABlab(43.40, 25.44, -54.64)
CIE-LCHlch(43.40, 60.27, 294.96°)
OKLaboklab(52.19% 0.0113 -0.1564)
OKLCHoklch(52.19% 0.157 274.1)
XYZxyz(16.9570, 13.4279, 52.7267)
Luminance0.1343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505DC2 #C2B550
analogous
#5096C2 #505DC2 #7C50C2
triadic
#505DC2 #C2505D #5DC250
tetradic
#505DC2 #C25096 #C2B550 #50C27C
square
#505DC2 #C25096 #C2B550 #50C27C
split-complementary
#505DC2 #C27C50 #96C250
monochromatic
#273070 #37439E #505DC2 #7D87D2 #ABB1E2

Accessibility & contrast

On white

5.70
#505DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#505DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505DC2
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505DC2#FFFFFF#000000##FFFFFF
##505DC21.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#236CC6
Deuteranopia (green-blind)
#0262C0
Tritanopia (blue-blind)
#007486
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #505dc2;
/* rgb */ color: rgb(80, 93, 194);
/* oklch */ color: oklch(52.2% 0.157 274.1);
Tailwind
colors: {
  custom: {
    50: '#8b8ad5',
    500: '#505dc2',
    950: '#000000',
  },
}
SCSS
$custom: #505dc2;
$custom-light: #8b8ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#505dc2",
  "rgb": {
    "r": 80,
    "g": 93,
    "b": 194
  },
  "hsl": {
    "h": 233.158,
    "s": 48.305,
    "l": 53.725
  },
  "oklch": {
    "l": 0.52188,
    "c": 0.15685,
    "h": 274.1
  },
  "luminance": 0.13429
}

Semantic roles & 50–950 ramp

primary
#505DC2
secondary
#CFCA9F
accent
#C850D8
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #505DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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