#505CE5#505CE5

#505CE5 is a mid, highly saturated blue. Relative luminance 0.150; OKLCH L 54.7% C 0.205 H 273.6°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#505CE5
RGBrgb(80, 92, 229)
HSLhsl(235, 74%, 61%)
HSVhsv(235, 65%, 90%)
CMYKcmyk(65.1%, 59.8%, 0%, 10.2%)
CIE-LABlab(45.65, 37.83, -71.02)
CIE-LCHlch(45.65, 80.47, 298.04°)
OKLaboklab(54.66% 0.013 -0.2046)
OKLCHoklch(54.66% 0.205 273.6)
XYZxyz(21.2736, 15.0150, 75.8906)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CE5 #E5D950
analogous
#50A6E5 #505CE5 #8E50E5
triadic
#505CE5 #E5505C #5CE550
tetradic
#505CE5 #E550A6 #E5D950 #50E58E
square
#505CE5 #E550A6 #E5D950 #50E58E
split-complementary
#505CE5 #E58E50 #A6E550
monochromatic
#1823A2 #202FD8 #505CE5 #858EED #BBBFF5

Accessibility & contrast

On white

5.25
#505CE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#505CE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CE5
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CE5#FFFFFF#000000##FFFFFF
##505CE51.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EA
Deuteranopia (green-blind)
#0066E2
Tritanopia (blue-blind)
#007E98
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #505ce5;
/* rgb */ color: rgb(80, 92, 229);
/* oklch */ color: oklch(54.7% 0.205 273.6);
Tailwind
colors: {
  custom: {
    50: '#918aee',
    500: '#505ce5',
    950: '#000000',
  },
}
SCSS
$custom: #505ce5;
$custom-light: #918aee;
$custom-dark: #000000;
JSON
{
  "hex": "#505ce5",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 229
  },
  "hsl": {
    "h": 235.168,
    "s": 74.129,
    "l": 60.588
  },
  "oklch": {
    "l": 0.54658,
    "c": 0.20504,
    "h": 273.6
  },
  "luminance": 0.15017
}

Semantic roles & 50–950 ramp

primary
#505CE5
secondary
#E5E0AC
accent
#C60FD6
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #505CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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