#505ABC#505ABC

#505ABC is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.2% C 0.152 H 275.3°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#505ABC
RGBrgb(80, 90, 188)
HSLhsl(234, 45%, 53%)
HSVhsv(234, 57%, 74%)
CMYKcmyk(57.4%, 52.1%, 0%, 26.3%)
CIE-LABlab(42.23, 25.32, -53.04)
CIE-LCHlch(42.23, 58.78, 295.52°)
OKLaboklab(51.18% 0.014 -0.1518)
OKLCHoklch(51.18% 0.152 275.3)
XYZxyz(16.0386, 12.6475, 49.1632)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505ABC #BCB250
analogous
#5090BC #505ABC #7C50BC
triadic
#505ABC #BC505A #5ABC50
tetradic
#505ABC #BC5090 #BCB250 #50BC7C
square
#505ABC #BC5090 #BCB250 #50BC7C
split-complementary
#505ABC #BC7C50 #90BC50
monochromatic
#282E69 #394296 #505ABC #7C84CD #A9ADDE

Accessibility & contrast

On white

5.95
#505ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#505ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505ABC
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505ABC#FFFFFF#000000##FFFFFF
##505ABC1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2368BF
Deuteranopia (green-blind)
#095FBA
Tritanopia (blue-blind)
#0A7082
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #505abc;
/* rgb */ color: rgb(80, 90, 188);
/* oklch */ color: oklch(51.2% 0.152 275.3);
Tailwind
colors: {
  custom: {
    50: '#8a88d1',
    500: '#505abc',
    950: '#000000',
  },
}
SCSS
$custom: #505abc;
$custom-light: #8a88d1;
$custom-dark: #000000;
JSON
{
  "hex": "#505abc",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 188
  },
  "hsl": {
    "h": 234.444,
    "s": 44.628,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51178,
    "c": 0.15241,
    "h": 275.3
  },
  "luminance": 0.12649
}

Semantic roles & 50–950 ramp

primary
#505ABC
secondary
#CBC79C
accent
#C853D4
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0D0B14
muted
#7D7C82

Preview Lab

Preview with #505ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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