#515DB4#515DB4

#515DB4 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.3% C 0.137 H 274.6°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#515DB4
RGBrgb(81, 93, 180)
HSLhsl(233, 40%, 51%)
HSVhsv(233, 55%, 71%)
CMYKcmyk(55%, 48.3%, 0%, 29.4%)
CIE-LABlab(42.57, 20.97, -47.81)
CIE-LCHlch(42.57, 52.21, 293.68°)
OKLaboklab(51.29% 0.011 -0.1363)
OKLCHoklch(51.29% 0.137 274.6)
XYZxyz(15.5433, 12.8723, 44.8367)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515DB4 #B4A851
analogous
#518EB4 #515DB4 #7651B4
triadic
#515DB4 #B4515D #5DB451
tetradic
#515DB4 #B4518E #B4A851 #51B476
square
#515DB4 #B4518E #B4A851 #51B476
split-complementary
#515DB4 #B47651 #8EB451
monochromatic
#2A3061 #3C468C #515DB4 #7C85C6 #A7ADD9

Accessibility & contrast

On white

5.87
#515DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#515DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515DB4
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515DB4#FFFFFF#000000##FFFFFF
##515DB41.005.873.575.87
#FFFFFF5.871.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3469B7
Deuteranopia (green-blind)
#2761B2
Tritanopia (blue-blind)
#1E7080
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #515db4;
/* rgb */ color: rgb(81, 93, 180);
/* oklch */ color: oklch(51.3% 0.137 274.6);
Tailwind
colors: {
  custom: {
    50: '#898acb',
    500: '#515db4',
    950: '#000000',
  },
}
SCSS
$custom: #515db4;
$custom-light: #898acb;
$custom-dark: #000000;
JSON
{
  "hex": "#515db4",
  "rgb": {
    "r": 81,
    "g": 93,
    "b": 180
  },
  "hsl": {
    "h": 232.727,
    "s": 39.759,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5129,
    "c": 0.13678,
    "h": 274.6
  },
  "luminance": 0.12873
}

Semantic roles & 50–950 ramp

primary
#515DB4
secondary
#C6C19B
accent
#C158D0
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #515DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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