#505EC2#505EC2

#505EC2 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.4% C 0.156 H 273.8°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#505EC2
RGBrgb(80, 94, 194)
HSLhsl(233, 48%, 54%)
HSVhsv(233, 59%, 76%)
CMYKcmyk(58.8%, 51.5%, 0%, 23.9%)
CIE-LABlab(43.66, 24.81, -54.22)
CIE-LCHlch(43.66, 59.63, 294.58°)
OKLaboklab(52.38% 0.0103 -0.1552)
OKLCHoklch(52.38% 0.156 273.8)
XYZxyz(17.0454, 13.6046, 52.7562)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505EC2 #C2B450
analogous
#5097C2 #505EC2 #7B50C2
triadic
#505EC2 #C2505E #5EC250
tetradic
#505EC2 #C25097 #C2B450 #50C27B
square
#505EC2 #C25097 #C2B450 #50C27B
split-complementary
#505EC2 #C27B50 #97C250
monochromatic
#273070 #37449E #505EC2 #7D88D2 #ABB1E2

Accessibility & contrast

On white

5.64
#505EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#505EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505EC2
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505EC2#FFFFFF#000000##FFFFFF
##505EC21.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#266CC6
Deuteranopia (green-blind)
#0962C0
Tritanopia (blue-blind)
#007587
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #505ec2;
/* rgb */ color: rgb(80, 94, 194);
/* oklch */ color: oklch(52.4% 0.156 273.8);
Tailwind
colors: {
  custom: {
    50: '#8b8bd5',
    500: '#505ec2',
    950: '#000000',
  },
}
SCSS
$custom: #505ec2;
$custom-light: #8b8bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#505ec2",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 232.632,
    "s": 48.305,
    "l": 53.725
  },
  "oklch": {
    "l": 0.52383,
    "c": 0.15553,
    "h": 273.8
  },
  "luminance": 0.13606
}

Semantic roles & 50–950 ramp

primary
#505EC2
secondary
#CFC99F
accent
#C750D8
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83

Preview Lab

Preview with #505EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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