#515397#515397

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

Color values

HEX#515397
RGBrgb(81, 83, 151)
HSLhsl(238, 30%, 45%)
HSVhsv(238, 46%, 59%)
CMYKcmyk(46.4%, 45%, 0%, 40.8%)
CIE-LABlab(38.15, 17.94, -37.65)
CIE-LCHlch(38.15, 41.71, 295.48°)
OKLaboklab(47.37% 0.0191 -0.1066)
OKLCHoklch(47.37% 0.108 280.1)
XYZxyz(12.0708, 10.1696, 30.5991)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515397 #979551
analogous
#517697 #515397 #725197
triadic
#515397 #975153 #539751
tetradic
#515397 #975176 #979551 #519772
square
#515397 #975176 #979551 #519772
split-complementary
#515397 #977251 #769751
monochromatic
#262747 #3C3D6F #515397 #7274B3 #9A9BC9

Accessibility & contrast

On white

6.92
#515397 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#515397 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515397
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515397#FFFFFF#000000##FFFFFF
##5153971.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385C9A
Deuteranopia (green-blind)
#345795
Tritanopia (blue-blind)
#39616D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #515397;
/* rgb */ color: rgb(81, 83, 151);
/* oklch */ color: oklch(47.4% 0.108 280.1);
Tailwind
colors: {
  custom: {
    50: '#8683b6',
    500: '#515397',
    950: '#000000',
  },
}
SCSS
$custom: #515397;
$custom-light: #8683b6;
$custom-dark: #000000;
JSON
{
  "hex": "#515397",
  "rgb": {
    "r": 81,
    "g": 83,
    "b": 151
  },
  "hsl": {
    "h": 238.286,
    "s": 30.172,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4737,
    "c": 0.10828,
    "h": 280.1
  },
  "luminance": 0.1017
}

Semantic roles & 50–950 ramp

primary
#515397
secondary
#B6B48E
accent
#C461C6
background
#F8F8FB
surface
#F0EFF6
border
#CBCAD0
text
#0B0A11
muted
#7C7C80

Preview Lab

Preview with #515397

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

Preview Lab → · Contrast checker → · Palette generator →

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