#505BB2#505BB2

#505BB2 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.7% C 0.137 H 275.0°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#505BB2
RGBrgb(80, 91, 178)
HSLhsl(233, 39%, 51%)
HSVhsv(233, 55%, 70%)
CMYKcmyk(55.1%, 48.9%, 0%, 30.2%)
CIE-LABlab(41.85, 21.36, -47.80)
CIE-LCHlch(41.85, 52.36, 294.08°)
OKLaboklab(50.68% 0.0119 -0.1363)
OKLCHoklch(50.68% 0.137 275)
XYZxyz(15.0827, 12.4010, 43.7097)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BB2 #B2A750
analogous
#508CB2 #505BB2 #7650B2
triadic
#505BB2 #B2505B #5BB250
tetradic
#505BB2 #B2508C #B2A750 #50B276
square
#505BB2 #B2508C #B2A750 #50B276
split-complementary
#505BB2 #B27650 #8CB250
monochromatic
#292F5E #3C4589 #505BB2 #7A83C5 #A5ABD7

Accessibility & contrast

On white

6.03
#505BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#505BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505BB2
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BB2#FFFFFF#000000##FFFFFF
##505BB21.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3167B5
Deuteranopia (green-blind)
#245FB0
Tritanopia (blue-blind)
#1E6E7E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #505bb2;
/* rgb */ color: rgb(80, 91, 178);
/* oklch */ color: oklch(50.7% 0.137 275.0);
Tailwind
colors: {
  custom: {
    50: '#8989c9',
    500: '#505bb2',
    950: '#000000',
  },
}
SCSS
$custom: #505bb2;
$custom-light: #8989c9;
$custom-dark: #000000;
JSON
{
  "hex": "#505bb2",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 233.265,
    "s": 38.889,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50684,
    "c": 0.13687,
    "h": 275
  },
  "luminance": 0.12402
}

Semantic roles & 50–950 ramp

primary
#505BB2
secondary
#C5C099
accent
#C259CF
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #505BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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