#505FAC#505FAC

#505FAC is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.1% C 0.123 H 273.0°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#505FAC
RGBrgb(80, 95, 172)
HSLhsl(230, 37%, 49%)
HSVhsv(230, 53%, 67%)
CMYKcmyk(53.5%, 44.8%, 0%, 32.5%)
CIE-LABlab(42.56, 16.84, -43.13)
CIE-LCHlch(42.56, 46.30, 291.33°)
OKLaboklab(51.11% 0.0065 -0.1226)
OKLCHoklch(51.11% 0.123 273)
XYZxyz(14.8445, 12.8675, 40.7232)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505FAC #AC9D50
analogous
#508DAC #505FAC #6F50AC
triadic
#505FAC #AC505F #5FAC50
tetradic
#505FAC #AC508D #AC9D50 #50AC6F
square
#505FAC #AC508D #AC9D50 #50AC6F
split-complementary
#505FAC #AC6F50 #8DAC50
monochromatic
#293158 #3D4882 #505FAC #7984C1 #A2ABD4

Accessibility & contrast

On white

5.88
#505FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#505FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505FAC
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505FAC#FFFFFF#000000##FFFFFF
##505FAC1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E69AF
Deuteranopia (green-blind)
#3461AA
Tritanopia (blue-blind)
#25707D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #505fac;
/* rgb */ color: rgb(80, 95, 172);
/* oklch */ color: oklch(51.1% 0.123 273.0);
Tailwind
colors: {
  custom: {
    50: '#888cc5',
    500: '#505fac',
    950: '#000000',
  },
}
SCSS
$custom: #505fac;
$custom-light: #888cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#505fac",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 230.217,
    "s": 36.508,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51112,
    "c": 0.12275,
    "h": 273
  },
  "luminance": 0.12868
}

Semantic roles & 50–950 ramp

primary
#505FAC
secondary
#C1BA97
accent
#BA5BCD
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #505FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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