#505FB6#505FB6

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

Color values

HEX#505FB6
RGBrgb(80, 95, 182)
HSLhsl(231, 41%, 51%)
HSVhsv(231, 56%, 71%)
CMYKcmyk(56%, 47.8%, 0%, 28.6%)
CIE-LABlab(43.16, 20.15, -48.04)
CIE-LCHlch(43.16, 52.09, 292.76°)
OKLaboklab(51.76% 0.0079 -0.137)
OKLCHoklch(51.76% 0.137 273.3)
XYZxyz(15.8412, 13.2662, 45.9728)
Luminance0.1327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505FB6 #B6A750
analogous
#5092B6 #505FB6 #7450B6
triadic
#505FB6 #B6505F #5FB650
tetradic
#505FB6 #B65092 #B6A750 #50B674
square
#505FB6 #B65092 #B6A750 #50B674
split-complementary
#505FB6 #B67450 #92B650
monochromatic
#293263 #3B478E #505FB6 #7B86C8 #A6AEDA

Accessibility & contrast

On white

5.75
#505FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #505FB6
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505FB6#FFFFFF#000000##FFFFFF
##505FB61.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366BB9
Deuteranopia (green-blind)
#2862B4
Tritanopia (blue-blind)
#177282
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #505fb6;
/* rgb */ color: rgb(80, 95, 182);
/* oklch */ color: oklch(51.8% 0.137 273.3);
Tailwind
colors: {
  custom: {
    50: '#898ccc',
    500: '#505fb6',
    950: '#000000',
  },
}
SCSS
$custom: #505fb6;
$custom-light: #898ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#505fb6",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 182
  },
  "hsl": {
    "h": 231.176,
    "s": 41.129,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51761,
    "c": 0.13723,
    "h": 273.3
  },
  "luminance": 0.13267
}

Semantic roles & 50–950 ramp

primary
#505FB6
secondary
#C7C19A
accent
#BF57D1
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #505FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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