#505EAF#505EAF

#505EAF is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.1% C 0.128 H 273.6°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#505EAF
RGBrgb(80, 94, 175)
HSLhsl(231, 37%, 50%)
HSVhsv(231, 54%, 69%)
CMYKcmyk(54.3%, 46.3%, 0%, 31.4%)
CIE-LABlab(42.47, 18.46, -45.04)
CIE-LCHlch(42.47, 48.68, 292.29°)
OKLaboklab(51.1% 0.0081 -0.1282)
OKLCHoklch(51.1% 0.128 273.6)
XYZxyz(15.0463, 12.8050, 42.2279)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505EAF #AFA150
analogous
#508DAF #505EAF #7250AF
triadic
#505EAF #AF505E #5EAF50
tetradic
#505EAF #AF508D #AFA150 #50AF72
square
#505EAF #AF508D #AFA150 #50AF72
split-complementary
#505EAF #AF7250 #8DAF50
monochromatic
#2A315B #3D4785 #505EAF #7A85C2 #A4ABD5

Accessibility & contrast

On white

5.90
#505EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#505EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505EAF
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505EAF#FFFFFF#000000##FFFFFF
##505EAF1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A68B2
Deuteranopia (green-blind)
#2F60AD
Tritanopia (blue-blind)
#21707E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #505eaf;
/* rgb */ color: rgb(80, 94, 175);
/* oklch */ color: oklch(51.1% 0.128 273.6);
Tailwind
colors: {
  custom: {
    50: '#888bc7',
    500: '#505eaf',
    950: '#000000',
  },
}
SCSS
$custom: #505eaf;
$custom-light: #888bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#505eaf",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 175
  },
  "hsl": {
    "h": 231.158,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.51097,
    "c": 0.12848,
    "h": 273.6
  },
  "luminance": 0.12806
}

Semantic roles & 50–950 ramp

primary
#505EAF
secondary
#C3BC98
accent
#BC5BCD
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #505EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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