#505FB3#505FB3

#505FB3 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.6% C 0.133 H 273.3°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#505FB3
RGBrgb(80, 95, 179)
HSLhsl(231, 39%, 51%)
HSVhsv(231, 55%, 70%)
CMYKcmyk(55.3%, 46.9%, 0%, 29.8%)
CIE-LABlab(42.98, 19.16, -46.58)
CIE-LCHlch(42.98, 50.36, 292.36°)
OKLaboklab(51.56% 0.0075 -0.1327)
OKLCHoklch(51.56% 0.133 273.3)
XYZxyz(15.5345, 13.1435, 44.3574)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505FB3 #B3A450
analogous
#5090B3 #505FB3 #7250B3
triadic
#505FB3 #B3505F #5FB350
tetradic
#505FB3 #B35090 #B3A450 #50B372
square
#505FB3 #B35090 #B3A450 #50B372
split-complementary
#505FB3 #B37250 #90B350
monochromatic
#29325F #3C488A #505FB3 #7B86C6 #A5ADD8

Accessibility & contrast

On white

5.79
#505FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#505FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505FB3
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505FB3#FFFFFF#000000##FFFFFF
##505FB31.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396AB6
Deuteranopia (green-blind)
#2C61B1
Tritanopia (blue-blind)
#1C7280
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #505fb3;
/* rgb */ color: rgb(80, 95, 179);
/* oklch */ color: oklch(51.6% 0.133 273.3);
Tailwind
colors: {
  custom: {
    50: '#898cca',
    500: '#505fb3',
    950: '#000000',
  },
}
SCSS
$custom: #505fb3;
$custom-light: #898cca;
$custom-dark: #000000;
JSON
{
  "hex": "#505fb3",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 179
  },
  "hsl": {
    "h": 230.909,
    "s": 39.442,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51563,
    "c": 0.13291,
    "h": 273.3
  },
  "luminance": 0.13145
}

Semantic roles & 50–950 ramp

primary
#505FB3
secondary
#C5BF99
accent
#BD58CF
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #505FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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