#505FA8#505FA8

#505FA8 is a mid, moderate blue. Relative luminance 0.127; OKLCH L 50.9% C 0.117 H 272.8°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#505FA8
RGBrgb(80, 95, 168)
HSLhsl(230, 35%, 49%)
HSVhsv(230, 52%, 66%)
CMYKcmyk(52.4%, 43.5%, 0%, 34.1%)
CIE-LABlab(42.33, 15.52, -41.13)
CIE-LCHlch(42.33, 43.97, 290.68°)
OKLaboklab(50.86% 0.0058 -0.1167)
OKLCHoklch(50.86% 0.117 272.8)
XYZxyz(14.4661, 12.7161, 38.7304)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505FA8 #A89950
analogous
#508BA8 #505FA8 #6D50A8
triadic
#505FA8 #A8505F #5FA850
tetradic
#505FA8 #A8508B #A89950 #50A86D
square
#505FA8 #A8508B #A89950 #50A86D
split-complementary
#505FA8 #A86D50 #8BA850
monochromatic
#293055 #3C487F #505FA8 #7783BE #A0A9D2

Accessibility & contrast

On white

5.93
#505FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#505FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505FA8
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505FA8#FFFFFF#000000##FFFFFF
##505FA81.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4168AB
Deuteranopia (green-blind)
#3760A6
Tritanopia (blue-blind)
#296F7B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #505fa8;
/* rgb */ color: rgb(80, 95, 168);
/* oklch */ color: oklch(50.9% 0.117 272.8);
Tailwind
colors: {
  custom: {
    50: '#878cc2',
    500: '#505fa8',
    950: '#000000',
  },
}
SCSS
$custom: #505fa8;
$custom-light: #878cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#505fa8",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 229.773,
    "s": 35.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50861,
    "c": 0.11688,
    "h": 272.8
  },
  "luminance": 0.12717
}

Semantic roles & 50–950 ramp

primary
#505FA8
secondary
#BFB895
accent
#B95CCC
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C12
muted
#7D7D81

Preview Lab

Preview with #505FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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