#515AA8#515AA8

#515AA8 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.9% C 0.123 H 276.0°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#515AA8
RGBrgb(81, 90, 168)
HSLhsl(234, 35%, 49%)
HSVhsv(234, 52%, 66%)
CMYKcmyk(51.8%, 46.4%, 0%, 34.1%)
CIE-LABlab(41.04, 18.93, -43.19)
CIE-LCHlch(41.04, 47.16, 293.67°)
OKLaboklab(49.89% 0.0129 -0.1228)
OKLCHoklch(49.89% 0.123 276)
XYZxyz(14.1152, 11.8879, 38.5890)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515AA8 #A89F51
analogous
#5186A8 #515AA8 #7451A8
triadic
#515AA8 #A8515A #5AA851
tetradic
#515AA8 #A85186 #A89F51 #51A874
square
#515AA8 #A85186 #A89F51 #51A874
split-complementary
#515AA8 #A87451 #86A851
monochromatic
#292E55 #3D447F #515AA8 #787FBE #A1A6D2

Accessibility & contrast

On white

6.22
#515AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#515AA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515AA8
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515AA8#FFFFFF#000000##FFFFFF
##515AA81.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3864AB
Deuteranopia (green-blind)
#2F5DA6
Tritanopia (blue-blind)
#2C6B79
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #515aa8;
/* rgb */ color: rgb(81, 90, 168);
/* oklch */ color: oklch(49.9% 0.123 276.0);
Tailwind
colors: {
  custom: {
    50: '#8888c2',
    500: '#515aa8',
    950: '#000000',
  },
}
SCSS
$custom: #515aa8;
$custom-light: #8888c2;
$custom-dark: #000000;
JSON
{
  "hex": "#515aa8",
  "rgb": {
    "r": 81,
    "g": 90,
    "b": 168
  },
  "hsl": {
    "h": 233.793,
    "s": 34.94,
    "l": 48.824
  },
  "oklch": {
    "l": 0.49891,
    "c": 0.12348,
    "h": 276
  },
  "luminance": 0.11889
}

Semantic roles & 50–950 ramp

primary
#515AA8
secondary
#BFBB96
accent
#C05DCB
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0B12
muted
#7D7C81

Preview Lab

Preview with #515AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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