#505BB9#505BB9

#505BB9 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.2% C 0.147 H 274.9°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#505BB9
RGBrgb(80, 91, 185)
HSLhsl(234, 43%, 52%)
HSVhsv(234, 57%, 73%)
CMYKcmyk(56.8%, 50.8%, 0%, 27.5%)
CIE-LABlab(42.29, 23.69, -51.19)
CIE-LCHlch(42.29, 56.40, 294.83°)
OKLaboklab(51.16% 0.0127 -0.1463)
OKLCHoklch(51.16% 0.147 274.9)
XYZxyz(15.8035, 12.6893, 47.5060)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BB9 #B9AE50
analogous
#5090B9 #505BB9 #7A50B9
triadic
#505BB9 #B9505B #5BB950
tetradic
#505BB9 #B95090 #B9AE50 #50B97A
square
#505BB9 #B95090 #B9AE50 #50B97A
split-complementary
#505BB9 #B97A50 #90B950
monochromatic
#292F66 #3A4392 #505BB9 #7C84CA #A7ADDC

Accessibility & contrast

On white

5.94
#505BB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#505BB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505BB9
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BB9#FFFFFF#000000##FFFFFF
##505BB91.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A68BC
Deuteranopia (green-blind)
#1860B7
Tritanopia (blue-blind)
#127081
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #505bb9;
/* rgb */ color: rgb(80, 91, 185);
/* oklch */ color: oklch(51.2% 0.147 274.9);
Tailwind
colors: {
  custom: {
    50: '#8a89cf',
    500: '#505bb9',
    950: '#000000',
  },
}
SCSS
$custom: #505bb9;
$custom-light: #8a89cf;
$custom-dark: #000000;
JSON
{
  "hex": "#505bb9",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 185
  },
  "hsl": {
    "h": 233.714,
    "s": 42.857,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51163,
    "c": 0.14685,
    "h": 274.9
  },
  "luminance": 0.1269
}

Semantic roles & 50–950 ramp

primary
#505BB9
secondary
#C9C59B
accent
#C555D3
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #505BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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