#505BD2#505BD2

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

Color values

HEX#505BD2
RGBrgb(80, 91, 210)
HSLhsl(235, 59%, 57%)
HSVhsv(235, 62%, 82%)
CMYKcmyk(61.9%, 56.7%, 0%, 17.6%)
CIE-LABlab(44.00, 32.07, -62.89)
CIE-LCHlch(44.00, 70.60, 297.02°)
OKLaboklab(52.99% 0.014 -0.1807)
OKLCHoklch(52.99% 0.181 274.4)
XYZxyz(18.6784, 13.8393, 62.6472)
Luminance0.1384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505BD2 #D2C750
analogous
#509CD2 #505BD2 #8650D2
triadic
#505BD2 #D2505B #5BD250
tetradic
#505BD2 #D2509C #D2C750 #50D286
square
#505BD2 #D2509C #D2C750 #50D286
split-complementary
#505BD2 #D28650 #9CD250
monochromatic
#222B85 #2F3AB6 #505BD2 #8189DF #B1B6EB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##505BD2#FFFFFF#000000##FFFFFF
##505BD21.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)
#006ED6
Deuteranopia (green-blind)
#0062D0
Tritanopia (blue-blind)
#00788E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #505bd2;
/* rgb */ color: rgb(80, 91, 210);
/* oklch */ color: oklch(53.0% 0.181 274.4);
Tailwind
colors: {
  custom: {
    50: '#8e89e1',
    500: '#505bd2',
    950: '#000000',
  },
}
SCSS
$custom: #505bd2;
$custom-light: #8e89e1;
$custom-dark: #000000;
JSON
{
  "hex": "#505bd2",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 210
  },
  "hsl": {
    "h": 234.923,
    "s": 59.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.52989,
    "c": 0.18128,
    "h": 274.4
  },
  "luminance": 0.13841
}

Semantic roles & 50–950 ramp

primary
#505BD2
secondary
#D9D5A4
accent
#D546E2
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #505BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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