#505FA2#505FA2

#505FA2 is a mid, moderate blue. Relative luminance 0.125; OKLCH L 50.5% C 0.108 H 272.5°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#505FA2
RGBrgb(80, 95, 162)
HSLhsl(229, 34%, 47%)
HSVhsv(229, 51%, 64%)
CMYKcmyk(50.6%, 41.4%, 0%, 36.5%)
CIE-LABlab(42.00, 13.57, -38.12)
CIE-LCHlch(42.00, 40.46, 289.60°)
OKLaboklab(50.49% 0.0047 -0.1079)
OKLCHoklch(50.49% 0.108 272.5)
XYZxyz(13.9200, 12.4977, 35.8542)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505FA2 #A29350
analogous
#5088A2 #505FA2 #6A50A2
triadic
#505FA2 #A2505F #5FA250
tetradic
#505FA2 #A25088 #A29350 #50A26A
square
#505FA2 #A25088 #A29350 #50A26A
split-complementary
#505FA2 #A26A50 #88A250
monochromatic
#282F50 #3C4779 #505FA2 #7581BB #9EA7CF

Accessibility & contrast

On white

6.00
#505FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#505FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505FA2
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505FA2#FFFFFF#000000##FFFFFF
##505FA21.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4467A5
Deuteranopia (green-blind)
#3C60A1
Tritanopia (blue-blind)
#2E6D78
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #505fa2;
/* rgb */ color: rgb(80, 95, 162);
/* oklch */ color: oklch(50.5% 0.108 272.5);
Tailwind
colors: {
  custom: {
    50: '#868cbe',
    500: '#505fa2',
    950: '#000000',
  },
}
SCSS
$custom: #505fa2;
$custom-light: #868cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#505fa2",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 229.024,
    "s": 33.884,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50494,
    "c": 0.108,
    "h": 272.5
  },
  "luminance": 0.12499
}

Semantic roles & 50–950 ramp

primary
#505FA2
secondary
#BCB492
accent
#B65ECA
background
#F8F8FB
surface
#F0F0F7
border
#CBCBD0
text
#0C0C12
muted
#7D7D81

Preview Lab

Preview with #505FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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