#505BBA#505BBA

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

Color values

HEX#505BBA
RGBrgb(80, 91, 186)
HSLhsl(234, 43%, 52%)
HSVhsv(234, 57%, 73%)
CMYKcmyk(57%, 51.1%, 0%, 27.1%)
CIE-LABlab(42.36, 24.02, -51.67)
CIE-LCHlch(42.36, 56.98, 294.93°)
OKLaboklab(51.23% 0.0127 -0.1477)
OKLCHoklch(51.23% 0.148 274.9)
XYZxyz(15.9094, 12.7317, 48.0640)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BBA #BAAF50
analogous
#5090BA #505BBA #7A50BA
triadic
#505BBA #BA505B #5BBA50
tetradic
#505BBA #BA5090 #BAAF50 #50BA7A
square
#505BBA #BA5090 #BAAF50 #50BA7A
split-complementary
#505BBA #BA7A50 #90BA50
monochromatic
#292F67 #3A4393 #505BBA #7C84CB #A8ADDD

Accessibility & contrast

On white

5.92
#505BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#505BBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505BBA
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BBA#FFFFFF#000000##FFFFFF
##505BBA1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2969BD
Deuteranopia (green-blind)
#1560B8
Tritanopia (blue-blind)
#0F7082
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #505bba;
/* rgb */ color: rgb(80, 91, 186);
/* oklch */ color: oklch(51.2% 0.148 274.9);
Tailwind
colors: {
  custom: {
    50: '#8a89cf',
    500: '#505bba',
    950: '#000000',
  },
}
SCSS
$custom: #505bba;
$custom-light: #8a89cf;
$custom-dark: #000000;
JSON
{
  "hex": "#505bba",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 186
  },
  "hsl": {
    "h": 233.774,
    "s": 43.443,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51233,
    "c": 0.14826,
    "h": 274.9
  },
  "luminance": 0.12733
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #505BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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