#515AA4#515AA4

#515AA4 is a mid, moderate blue. Relative luminance 0.117; OKLCH L 49.6% C 0.118 H 276.0°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#515AA4
RGBrgb(81, 90, 164)
HSLhsl(233, 34%, 48%)
HSVhsv(233, 51%, 64%)
CMYKcmyk(50.6%, 45.1%, 0%, 35.7%)
CIE-LABlab(40.80, 17.63, -41.20)
CIE-LCHlch(40.80, 44.81, 293.17°)
OKLaboklab(49.64% 0.0123 -0.1169)
OKLCHoklch(49.64% 0.118 276)
XYZxyz(13.7482, 11.7412, 36.6566)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515AA4 #A49B51
analogous
#5183A4 #515AA4 #7151A4
triadic
#515AA4 #A4515A #5AA451
tetradic
#515AA4 #A45183 #A49B51 #51A471
square
#515AA4 #A45183 #A49B51 #51A471
split-complementary
#515AA4 #A47151 #83A451
monochromatic
#292D52 #3D447B #515AA4 #777EBC #A0A5D0

Accessibility & contrast

On white

6.27
#515AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#515AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515AA4
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515AA4#FFFFFF#000000##FFFFFF
##515AA41.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B64A7
Deuteranopia (green-blind)
#335DA2
Tritanopia (blue-blind)
#306A77
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #515aa4;
/* rgb */ color: rgb(81, 90, 164);
/* oklch */ color: oklch(49.6% 0.118 276.0);
Tailwind
colors: {
  custom: {
    50: '#8788bf',
    500: '#515aa4',
    950: '#000000',
  },
}
SCSS
$custom: #515aa4;
$custom-light: #8788bf;
$custom-dark: #000000;
JSON
{
  "hex": "#515aa4",
  "rgb": {
    "r": 81,
    "g": 90,
    "b": 164
  },
  "hsl": {
    "h": 233.494,
    "s": 33.878,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49636,
    "c": 0.11759,
    "h": 276
  },
  "luminance": 0.11742
}

Semantic roles & 50–950 ramp

primary
#515AA4
secondary
#BDB894
accent
#BE5ECA
background
#F8F8FB
surface
#F0EFF7
border
#CBCAD0
text
#0C0B12
muted
#7D7C81

Preview Lab

Preview with #515AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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