#505DCB#505DCB

#505DCB is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.8% C 0.169 H 274.0°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#505DCB
RGBrgb(80, 93, 203)
HSLhsl(234, 54%, 55%)
HSVhsv(234, 61%, 80%)
CMYKcmyk(60.6%, 54.2%, 0%, 20.4%)
CIE-LABlab(44.01, 28.46, -58.86)
CIE-LCHlch(44.01, 65.38, 295.81°)
OKLaboklab(52.84% 0.0119 -0.1688)
OKLCHoklch(52.84% 0.169 274)
XYZxyz(17.9986, 13.8445, 58.2121)
Luminance0.1385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505DCB #CBBE50
analogous
#509ACB #505DCB #8150CB
triadic
#505DCB #CB505D #5DCB50
tetradic
#505DCB #CB509A #CBBE50 #50CB81
square
#505DCB #CB509A #CBBE50 #50CB81
split-complementary
#505DCB #CB8150 #9ACB50
monochromatic
#252E7C #3340AB #505DCB #7F89D9 #AEB4E7

Accessibility & contrast

On white

5.57
#505DCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#505DCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505DCB
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505DCB#FFFFFF#000000##FFFFFF
##505DCB1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#106ECF
Deuteranopia (green-blind)
#0063C9
Tritanopia (blue-blind)
#00778B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #505dcb;
/* rgb */ color: rgb(80, 93, 203);
/* oklch */ color: oklch(52.8% 0.169 274.0);
Tailwind
colors: {
  custom: {
    50: '#8c8adc',
    500: '#505dcb',
    950: '#000000',
  },
}
SCSS
$custom: #505dcb;
$custom-light: #8c8adc;
$custom-dark: #000000;
JSON
{
  "hex": "#505dcb",
  "rgb": {
    "r": 80,
    "g": 93,
    "b": 203
  },
  "hsl": {
    "h": 233.659,
    "s": 54.185,
    "l": 55.49
  },
  "oklch": {
    "l": 0.52838,
    "c": 0.16927,
    "h": 274
  },
  "luminance": 0.13846
}

Semantic roles & 50–950 ramp

primary
#505DCB
secondary
#D5D0A2
accent
#CE4ADE
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #505DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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