#505FB2#505FB2

#505FB2 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.5% C 0.131 H 273.2°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#505FB2
RGBrgb(80, 95, 178)
HSLhsl(231, 39%, 51%)
HSVhsv(231, 55%, 70%)
CMYKcmyk(55.1%, 46.6%, 0%, 30.2%)
CIE-LABlab(42.92, 18.82, -46.09)
CIE-LCHlch(42.92, 49.78, 292.22°)
OKLaboklab(51.5% 0.0074 -0.1313)
OKLCHoklch(51.5% 0.131 273.2)
XYZxyz(15.4338, 13.1032, 43.8267)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505FB2 #B2A350
analogous
#5090B2 #505FB2 #7250B2
triadic
#505FB2 #B2505F #5FB250
tetradic
#505FB2 #B25090 #B2A350 #50B272
square
#505FB2 #B25090 #B2A350 #50B272
split-complementary
#505FB2 #B27250 #90B250
monochromatic
#29325E #3C4889 #505FB2 #7A86C5 #A5ADD7

Accessibility & contrast

On white

5.80
#505FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#505FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #505FB2
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505FB2#FFFFFF#000000##FFFFFF
##505FB21.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396AB5
Deuteranopia (green-blind)
#2D61B0
Tritanopia (blue-blind)
#1D7180
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #505fb2;
/* rgb */ color: rgb(80, 95, 178);
/* oklch */ color: oklch(51.5% 0.131 273.2);
Tailwind
colors: {
  custom: {
    50: '#888cc9',
    500: '#505fb2',
    950: '#000000',
  },
}
SCSS
$custom: #505fb2;
$custom-light: #888cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#505fb2",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 230.816,
    "s": 38.889,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51498,
    "c": 0.13148,
    "h": 273.2
  },
  "luminance": 0.13104
}

Semantic roles & 50–950 ramp

primary
#505FB2
secondary
#C5BE99
accent
#BD59CF
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #505FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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