#505CE1#505CE1

#505CE1 is a mid, vivid blue. Relative luminance 0.148; OKLCH L 54.3% C 0.200 H 273.8°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#505CE1
RGBrgb(80, 92, 225)
HSLhsl(235, 71%, 60%)
HSVhsv(235, 64%, 88%)
CMYKcmyk(64.4%, 59.1%, 0%, 11.8%)
CIE-LABlab(45.35, 36.49, -69.25)
CIE-LCHlch(45.35, 78.28, 297.78°)
OKLaboklab(54.34% 0.0131 -0.1994)
OKLCHoklch(54.34% 0.2 273.8)
XYZxyz(20.7215, 14.7942, 72.9831)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CE1 #E1D550
analogous
#50A5E1 #505CE1 #8C50E1
triadic
#505CE1 #E1505C #5CE150
tetradic
#505CE1 #E150A5 #E1D550 #50E18C
square
#505CE1 #E150A5 #E1D550 #50E18C
split-complementary
#505CE1 #E18C50 #A5E150
monochromatic
#1B259C #2432D0 #505CE1 #848DEA #B8BDF3

Accessibility & contrast

On white

5.30
#505CE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#505CE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CE1
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CE1#FFFFFF#000000##FFFFFF
##505CE11.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E5
Deuteranopia (green-blind)
#0065DE
Tritanopia (blue-blind)
#007D96
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #505ce1;
/* rgb */ color: rgb(80, 92, 225);
/* oklch */ color: oklch(54.3% 0.200 273.8);
Tailwind
colors: {
  custom: {
    50: '#908aeb',
    500: '#505ce1',
    950: '#000000',
  },
}
SCSS
$custom: #505ce1;
$custom-light: #908aeb;
$custom-dark: #000000;
JSON
{
  "hex": "#505ce1",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 225
  },
  "hsl": {
    "h": 235.034,
    "s": 70.732,
    "l": 59.804
  },
  "oklch": {
    "l": 0.54339,
    "c": 0.19986,
    "h": 273.8
  },
  "luminance": 0.14796
}

Semantic roles & 50–950 ramp

primary
#505CE1
secondary
#E2DEAA
accent
#DF3AED
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #505CE1

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

Preview Lab → · Contrast checker → · Palette generator →

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