#515EA7#515EA7

#515EA7 is a mid, moderate blue. Relative luminance 0.125; OKLCH L 50.7% C 0.116 H 273.9°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#515EA7
RGBrgb(81, 94, 167)
HSLhsl(231, 35%, 49%)
HSVhsv(231, 51%, 65%)
CMYKcmyk(51.5%, 43.7%, 0%, 34.5%)
CIE-LABlab(42.07, 16.07, -40.96)
CIE-LCHlch(42.07, 44.00, 291.42°)
OKLaboklab(50.66% 0.0079 -0.1162)
OKLCHoklch(50.66% 0.116 273.9)
XYZxyz(14.3689, 12.5439, 38.2158)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515EA7 #A79A51
analogous
#5189A7 #515EA7 #6F51A7
triadic
#515EA7 #A7515E #5EA751
tetradic
#515EA7 #A75189 #A79A51 #51A76F
square
#515EA7 #A75189 #A79A51 #51A76F
split-complementary
#515EA7 #A76F51 #89A751
monochromatic
#293055 #3D477E #515EA7 #7882BD #A1A8D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##515EA7#FFFFFF#000000##FFFFFF
##515EA71.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)
#4067AA
Deuteranopia (green-blind)
#3760A5
Tritanopia (blue-blind)
#2C6E7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #515ea7;
/* rgb */ color: rgb(81, 94, 167);
/* oklch */ color: oklch(50.7% 0.116 273.9);
Tailwind
colors: {
  custom: {
    50: '#878bc1',
    500: '#515ea7',
    950: '#000000',
  },
}
SCSS
$custom: #515ea7;
$custom-light: #878bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#515ea7",
  "rgb": {
    "r": 81,
    "g": 94,
    "b": 167
  },
  "hsl": {
    "h": 230.93,
    "s": 34.677,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50657,
    "c": 0.11649,
    "h": 273.9
  },
  "luminance": 0.12545
}

Semantic roles & 50–950 ramp

primary
#515EA7
secondary
#BFB895
accent
#BA5DCB
background
#F8F8FB
surface
#F0F0F7
border
#CBCBD0
text
#0C0C12
muted
#7D7D81

Preview Lab

Preview with #515EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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