#515D8A#515D8A

#515D8A is a mid, moderate blue. Relative luminance 0.114; OKLCH L 48.8% C 0.074 H 272.0°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#515D8A
RGBrgb(81, 93, 138)
HSLhsl(227, 26%, 43%)
HSVhsv(227, 41%, 54%)
CMYKcmyk(41.3%, 32.6%, 0%, 45.9%)
CIE-LABlab(40.27, 7.56, -26.45)
CIE-LCHlch(40.27, 27.51, 285.95°)
OKLaboklab(48.78% 0.0026 -0.074)
OKLCHoklch(48.78% 0.074 272)
XYZxyz(11.8937, 11.4125, 25.6160)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515D8A #8A7E51
analogous
#51798A #515D8A #61518A
triadic
#515D8A #8A515D #5D8A51
tetradic
#515D8A #8A5179 #8A7E51 #518A61
square
#515D8A #8A5179 #8A7E51 #518A61
split-complementary
#515D8A #8A6151 #798A51
monochromatic
#24293D #3A4363 #515D8A #6E7BAA #959EC1

Accessibility & contrast

On white

6.40
#515D8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#515D8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515D8A
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515D8A#FFFFFF#000000##FFFFFF
##515D8A1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E618C
Deuteranopia (green-blind)
#495D89
Tritanopia (blue-blind)
#3F666D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #515d8a;
/* rgb */ color: rgb(81, 93, 138);
/* oklch */ color: oklch(48.8% 0.074 272.0);
Tailwind
colors: {
  custom: {
    50: '#848aac',
    500: '#515d8a',
    950: '#000000',
  },
}
SCSS
$custom: #515d8a;
$custom-light: #848aac;
$custom-dark: #000000;
JSON
{
  "hex": "#515d8a",
  "rgb": {
    "r": 81,
    "g": 93,
    "b": 138
  },
  "hsl": {
    "h": 227.368,
    "s": 26.027,
    "l": 42.941
  },
  "oklch": {
    "l": 0.48775,
    "c": 0.07403,
    "h": 272
  },
  "luminance": 0.11413
}

Semantic roles & 50–950 ramp

primary
#515D8A
secondary
#AEA689
accent
#AF65C2
background
#F8F8FA
surface
#EFF0F4
border
#CACBCE
text
#0B0B10
muted
#7C7C7F

Preview Lab

Preview with #515D8A

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

Preview Lab → · Contrast checker → · Palette generator →

#515D8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva