#515797#515797

#515797 is a mid, moderate blue. Relative luminance 0.108; OKLCH L 48.2% C 0.102 H 277.8°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#515797
RGBrgb(81, 87, 151)
HSLhsl(235, 30%, 45%)
HSVhsv(235, 46%, 59%)
CMYKcmyk(46.4%, 42.4%, 0%, 40.8%)
CIE-LABlab(39.24, 15.39, -35.91)
CIE-LCHlch(39.24, 39.07, 293.19°)
OKLaboklab(48.21% 0.0138 -0.1015)
OKLCHoklch(48.21% 0.102 277.8)
XYZxyz(12.3858, 10.7995, 30.7040)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515797 #979151
analogous
#517A97 #515797 #6E5197
triadic
#515797 #975157 #579751
tetradic
#515797 #97517A #979151 #51976E
square
#515797 #97517A #979151 #51976E
split-complementary
#515797 #976E51 #7A9751
monochromatic
#262947 #3C406F #515797 #7277B3 #9A9EC9

Accessibility & contrast

On white

6.65
#515797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#515797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515797
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515797#FFFFFF#000000##FFFFFF
##5157971.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5F99
Deuteranopia (green-blind)
#3A5A96
Tritanopia (blue-blind)
#39646F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #515797;
/* rgb */ color: rgb(81, 87, 151);
/* oklch */ color: oklch(48.2% 0.102 277.8);
Tailwind
colors: {
  custom: {
    50: '#8686b6',
    500: '#515797',
    950: '#000000',
  },
}
SCSS
$custom: #515797;
$custom-light: #8686b6;
$custom-dark: #000000;
JSON
{
  "hex": "#515797",
  "rgb": {
    "r": 81,
    "g": 87,
    "b": 151
  },
  "hsl": {
    "h": 234.857,
    "s": 30.172,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48205,
    "c": 0.10242,
    "h": 277.8
  },
  "luminance": 0.108
}

Semantic roles & 50–950 ramp

primary
#515797
secondary
#B6B28E
accent
#BE61C6
background
#F8F8FB
surface
#F0EFF6
border
#CBCAD0
text
#0B0B11
muted
#7C7C80

Preview Lab

Preview with #515797

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

Preview Lab → · Contrast checker → · Palette generator →

#515797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva