#505BCD#505BCD

#505BCD is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.6% C 0.175 H 274.6°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#505BCD
RGBrgb(80, 91, 205)
HSLhsl(235, 56%, 56%)
HSVhsv(235, 61%, 80%)
CMYKcmyk(61%, 55.6%, 0%, 19.6%)
CIE-LABlab(43.65, 30.39, -60.60)
CIE-LCHlch(43.65, 67.79, 296.63°)
OKLaboklab(52.61% 0.0139 -0.174)
OKLCHoklch(52.61% 0.175 274.6)
XYZxyz(18.0652, 13.5940, 59.4177)
Luminance0.1359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BCD #CDC250
analogous
#5099CD #505BCD #8350CD
triadic
#505BCD #CD505B #5BCD50
tetradic
#505BCD #CD5099 #CDC250 #50CD83
square
#505BCD #CD5099 #CDC250 #50CD83
split-complementary
#505BCD #CD8350 #99CD50
monochromatic
#242C7E #323DAE #505BCD #8088DB #AFB4E8

Accessibility & contrast

On white

5.65
#505BCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#505BCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505BCD
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505BCD#FFFFFF#000000##FFFFFF
##505BCD1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD1
Deuteranopia (green-blind)
#0062CB
Tritanopia (blue-blind)
#00768B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #505bcd;
/* rgb */ color: rgb(80, 91, 205);
/* oklch */ color: oklch(52.6% 0.175 274.6);
Tailwind
colors: {
  custom: {
    50: '#8d89dd',
    500: '#505bcd',
    950: '#000000',
  },
}
SCSS
$custom: #505bcd;
$custom-light: #8d89dd;
$custom-dark: #000000;
JSON
{
  "hex": "#505bcd",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 205
  },
  "hsl": {
    "h": 234.72,
    "s": 55.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5261,
    "c": 0.17454,
    "h": 274.6
  },
  "luminance": 0.13595
}

Semantic roles & 50–950 ramp

primary
#505BCD
secondary
#D6D2A2
accent
#D249DF
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #505BCD

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

Preview Lab → · Contrast checker → · Palette generator →

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