#515299#515299

#515299 is a mid, moderate blue. Relative luminance 0.101; OKLCH L 47.3% C 0.113 H 280.6°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#515299
RGBrgb(81, 82, 153)
HSLhsl(239, 31%, 46%)
HSVhsv(239, 47%, 60%)
CMYKcmyk(47.1%, 46.4%, 0%, 40%)
CIE-LABlab(37.99, 19.21, -39.10)
CIE-LCHlch(37.99, 43.56, 296.17°)
OKLaboklab(47.29% 0.0207 -0.1108)
OKLCHoklch(47.29% 0.113 280.6)
XYZxyz(12.1587, 10.0832, 31.4364)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515299 #999851
analogous
#517699 #515299 #745199
triadic
#515299 #995152 #529951
tetradic
#515299 #995176 #999851 #519974
square
#515299 #995176 #999851 #519974
split-complementary
#515299 #997451 #769951
monochromatic
#272749 #3C3D71 #515299 #7373B5 #9B9BCA

Accessibility & contrast

On white

6.96
#515299 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#515299 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515299
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515299#FFFFFF#000000##FFFFFF
##5152991.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355C9C
Deuteranopia (green-blind)
#315797
Tritanopia (blue-blind)
#38616E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #515299;
/* rgb */ color: rgb(81, 82, 153);
/* oklch */ color: oklch(47.3% 0.113 280.6);
Tailwind
colors: {
  custom: {
    50: '#8682b7',
    500: '#515299',
    950: '#000000',
  },
}
SCSS
$custom: #515299;
$custom-light: #8682b7;
$custom-dark: #000000;
JSON
{
  "hex": "#515299",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 153
  },
  "hsl": {
    "h": 239.167,
    "s": 30.769,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47291,
    "c": 0.11275,
    "h": 280.6
  },
  "luminance": 0.10084
}

Semantic roles & 50–950 ramp

primary
#515299
secondary
#B7B68F
accent
#C661C7
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0B0A11
muted
#7C7C80

Preview Lab

Preview with #515299

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

Preview Lab → · Contrast checker → · Palette generator →

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