#505BB4#505BB4

#505BB4 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.8% C 0.140 H 275.0°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#505BB4
RGBrgb(80, 91, 180)
HSLhsl(233, 40%, 51%)
HSVhsv(233, 56%, 71%)
CMYKcmyk(55.6%, 49.4%, 0%, 29.4%)
CIE-LABlab(41.97, 22.02, -48.77)
CIE-LCHlch(41.97, 53.52, 294.30°)
OKLaboklab(50.82% 0.0122 -0.1392)
OKLCHoklch(50.82% 0.14 275)
XYZxyz(15.2849, 12.4819, 44.7750)
Luminance0.1248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BB4 #B4A950
analogous
#508DB4 #505BB4 #7750B4
triadic
#505BB4 #B4505B #5BB450
tetradic
#505BB4 #B4508D #B4A950 #50B477
square
#505BB4 #B4508D #B4A950 #50B477
split-complementary
#505BB4 #B47750 #8DB450
monochromatic
#292F60 #3C448B #505BB4 #7B83C6 #A6ABD9

Accessibility & contrast

On white

6.01
#505BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#505BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505BB4
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BB4#FFFFFF#000000##FFFFFF
##505BB41.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F67B7
Deuteranopia (green-blind)
#215FB2
Tritanopia (blue-blind)
#1B6F7F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #505bb4;
/* rgb */ color: rgb(80, 91, 180);
/* oklch */ color: oklch(50.8% 0.140 275.0);
Tailwind
colors: {
  custom: {
    50: '#8989cb',
    500: '#505bb4',
    950: '#000000',
  },
}
SCSS
$custom: #505bb4;
$custom-light: #8989cb;
$custom-dark: #000000;
JSON
{
  "hex": "#505bb4",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 180
  },
  "hsl": {
    "h": 233.4,
    "s": 40,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50819,
    "c": 0.13974,
    "h": 275
  },
  "luminance": 0.12483
}

Semantic roles & 50–950 ramp

primary
#505BB4
secondary
#C6C19A
accent
#C358D0
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #505BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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