#515AB9#515AB9

#515AB9 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.0% C 0.148 H 275.8°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#515AB9
RGBrgb(81, 90, 185)
HSLhsl(235, 43%, 52%)
HSVhsv(235, 56%, 73%)
CMYKcmyk(56.2%, 51.4%, 0%, 27.5%)
CIE-LABlab(42.10, 24.52, -51.50)
CIE-LCHlch(42.10, 57.04, 295.46°)
OKLaboklab(51.04% 0.0149 -0.1472)
OKLCHoklch(51.04% 0.148 275.8)
XYZxyz(15.8036, 12.5633, 47.4817)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515AB9 #B9B051
analogous
#518EB9 #515AB9 #7C51B9
triadic
#515AB9 #B9515A #5AB951
tetradic
#515AB9 #B9518E #B9B051 #51B97C
square
#515AB9 #B9518E #B9B051 #51B97C
split-complementary
#515AB9 #B97C51 #8EB951
monochromatic
#292E66 #3B4292 #515AB9 #7D83CB #A8ADDC

Accessibility & contrast

On white

5.98
#515AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#515AB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515AB9
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515AB9#FFFFFF#000000##FFFFFF
##515AB91.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2868BC
Deuteranopia (green-blind)
#155FB7
Tritanopia (blue-blind)
#176F81
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #515ab9;
/* rgb */ color: rgb(81, 90, 185);
/* oklch */ color: oklch(51.0% 0.148 275.8);
Tailwind
colors: {
  custom: {
    50: '#8a88cf',
    500: '#515ab9',
    950: '#000000',
  },
}
SCSS
$custom: #515ab9;
$custom-light: #8a88cf;
$custom-dark: #000000;
JSON
{
  "hex": "#515ab9",
  "rgb": {
    "r": 81,
    "g": 90,
    "b": 185
  },
  "hsl": {
    "h": 234.808,
    "s": 42.623,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51035,
    "c": 0.14794,
    "h": 275.8
  },
  "luminance": 0.12564
}

Semantic roles & 50–950 ramp

primary
#515AB9
secondary
#CAC69C
accent
#C855D2
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #515AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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