#515EB2#515EB2

#515EB2 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.4% C 0.133 H 274.2°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#515EB2
RGBrgb(81, 94, 178)
HSLhsl(232, 39%, 51%)
HSVhsv(232, 54%, 70%)
CMYKcmyk(54.5%, 47.2%, 0%, 30.2%)
CIE-LABlab(42.72, 19.67, -46.41)
CIE-LCHlch(42.72, 50.41, 292.97°)
OKLaboklab(51.36% 0.0096 -0.1322)
OKLCHoklch(51.36% 0.133 274.2)
XYZxyz(15.4293, 12.9680, 43.8009)
Luminance0.1297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515EB2 #B2A551
analogous
#518EB2 #515EB2 #7451B2
triadic
#515EB2 #B2515E #5EB251
tetradic
#515EB2 #B2518E #B2A551 #51B274
square
#515EB2 #B2518E #B2A551 #51B274
split-complementary
#515EB2 #B27451 #8EB251
monochromatic
#2A315F #3D4789 #515EB2 #7B85C5 #A6ADD8

Accessibility & contrast

On white

5.84
#515EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#515EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515EB2
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515EB2#FFFFFF#000000##FFFFFF
##515EB21.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3869B5
Deuteranopia (green-blind)
#2C61B0
Tritanopia (blue-blind)
#21707F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #515eb2;
/* rgb */ color: rgb(81, 94, 178);
/* oklch */ color: oklch(51.4% 0.133 274.2);
Tailwind
colors: {
  custom: {
    50: '#898bc9',
    500: '#515eb2',
    950: '#000000',
  },
}
SCSS
$custom: #515eb2;
$custom-light: #898bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#515eb2",
  "rgb": {
    "r": 81,
    "g": 94,
    "b": 178
  },
  "hsl": {
    "h": 231.959,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5136,
    "c": 0.13255,
    "h": 274.2
  },
  "luminance": 0.12969
}

Semantic roles & 50–950 ramp

primary
#515EB2
secondary
#C5BF9A
accent
#BF59CF
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #515EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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