#505FB5#505FB5

#505FB5 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 51.7% C 0.136 H 273.3°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#505FB5
RGBrgb(80, 95, 181)
HSLhsl(231, 41%, 51%)
HSVhsv(231, 56%, 71%)
CMYKcmyk(55.8%, 47.5%, 0%, 29%)
CIE-LABlab(43.10, 19.82, -47.55)
CIE-LCHlch(43.10, 51.52, 292.63°)
OKLaboklab(51.7% 0.0078 -0.1356)
OKLCHoklch(51.7% 0.136 273.3)
XYZxyz(15.7383, 13.2250, 45.4304)
Luminance0.1323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505FB5 #B5A650
analogous
#5091B5 #505FB5 #7350B5
triadic
#505FB5 #B5505F #5FB550
tetradic
#505FB5 #B55091 #B5A650 #50B573
square
#505FB5 #B55091 #B5A650 #50B573
split-complementary
#505FB5 #B57350 #91B550
monochromatic
#293261 #3B478C #505FB5 #7B86C7 #A6AED9

Accessibility & contrast

On white

5.76
#505FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#505FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505FB5
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505FB5#FFFFFF#000000##FFFFFF
##505FB51.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#376AB8
Deuteranopia (green-blind)
#2962B3
Tritanopia (blue-blind)
#187281
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #505fb5;
/* rgb */ color: rgb(80, 95, 181);
/* oklch */ color: oklch(51.7% 0.136 273.3);
Tailwind
colors: {
  custom: {
    50: '#898ccc',
    500: '#505fb5',
    950: '#000000',
  },
}
SCSS
$custom: #505fb5;
$custom-light: #898ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#505fb5",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 181
  },
  "hsl": {
    "h": 231.089,
    "s": 40.562,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51695,
    "c": 0.13579,
    "h": 273.3
  },
  "luminance": 0.13226
}

Semantic roles & 50–950 ramp

primary
#505FB5
secondary
#C7C09A
accent
#BE57D0
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #505FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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