#505CBA#505CBA

#505CBA is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.4% C 0.147 H 274.6°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#505CBA
RGBrgb(80, 92, 186)
HSLhsl(233, 43%, 52%)
HSVhsv(233, 57%, 73%)
CMYKcmyk(57%, 50.5%, 0%, 27.1%)
CIE-LABlab(42.62, 23.39, -51.25)
CIE-LCHlch(42.62, 56.33, 294.53°)
OKLaboklab(51.43% 0.0117 -0.1465)
OKLCHoklch(51.43% 0.147 274.6)
XYZxyz(15.9955, 12.9038, 48.0926)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505CBA #BAAE50
analogous
#5091BA #505CBA #7950BA
triadic
#505CBA #BA505C #5CBA50
tetradic
#505CBA #BA5091 #BAAE50 #50BA79
square
#505CBA #BA5091 #BAAE50 #50BA79
split-complementary
#505CBA #BA7950 #91BA50
monochromatic
#293067 #3A4493 #505CBA #7C85CB #A8AEDD

Accessibility & contrast

On white

5.86
#505CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#505CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505CBA
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505CBA#FFFFFF#000000##FFFFFF
##505CBA1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B69BD
Deuteranopia (green-blind)
#1960B8
Tritanopia (blue-blind)
#0F7182
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #505cba;
/* rgb */ color: rgb(80, 92, 186);
/* oklch */ color: oklch(51.4% 0.147 274.6);
Tailwind
colors: {
  custom: {
    50: '#8a8acf',
    500: '#505cba',
    950: '#000000',
  },
}
SCSS
$custom: #505cba;
$custom-light: #8a8acf;
$custom-dark: #000000;
JSON
{
  "hex": "#505cba",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 186
  },
  "hsl": {
    "h": 233.208,
    "s": 43.443,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5143,
    "c": 0.14693,
    "h": 274.6
  },
  "luminance": 0.12905
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #505CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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