#505BBB#505BBB

#505BBB is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.3% C 0.150 H 274.9°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#505BBB
RGBrgb(80, 91, 187)
HSLhsl(234, 44%, 52%)
HSVhsv(234, 57%, 73%)
CMYKcmyk(57.2%, 51.3%, 0%, 26.7%)
CIE-LABlab(42.42, 24.35, -52.15)
CIE-LCHlch(42.42, 57.55, 295.03°)
OKLaboklab(51.3% 0.0128 -0.1491)
OKLCHoklch(51.3% 0.15 274.9)
XYZxyz(16.0161, 12.7743, 48.6258)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BBB #BBB050
analogous
#5090BB #505BBB #7B50BB
triadic
#505BBB #BB505B #5BBB50
tetradic
#505BBB #BB5090 #BBB050 #50BB7B
square
#505BBB #BB5090 #BBB050 #50BB7B
split-complementary
#505BBB #BB7B50 #90BB50
monochromatic
#282F68 #3A4394 #505BBB #7C84CC #A8AEDD

Accessibility & contrast

On white

5.91
#505BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#505BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505BBB
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BBB#FFFFFF#000000##FFFFFF
##505BBB1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2769BE
Deuteranopia (green-blind)
#1260B9
Tritanopia (blue-blind)
#0C7182
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #505bbb;
/* rgb */ color: rgb(80, 91, 187);
/* oklch */ color: oklch(51.3% 0.150 274.9);
Tailwind
colors: {
  custom: {
    50: '#8a89d0',
    500: '#505bbb',
    950: '#000000',
  },
}
SCSS
$custom: #505bbb;
$custom-light: #8a89d0;
$custom-dark: #000000;
JSON
{
  "hex": "#505bbb",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 187
  },
  "hsl": {
    "h": 233.832,
    "s": 44.033,
    "l": 52.353
  },
  "oklch": {
    "l": 0.51303,
    "c": 0.14967,
    "h": 274.9
  },
  "luminance": 0.12776
}

Semantic roles & 50–950 ramp

primary
#505BBB
secondary
#CBC69C
accent
#C754D4
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #505BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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