#515AC5#515AC5

#515AC5 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.9% C 0.165 H 275.4°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#515AC5
RGBrgb(81, 90, 197)
HSLhsl(235, 50%, 55%)
HSVhsv(235, 59%, 77%)
CMYKcmyk(58.9%, 54.3%, 0%, 22.7%)
CIE-LABlab(42.90, 28.51, -57.18)
CIE-LCHlch(42.90, 63.90, 296.50°)
OKLaboklab(51.89% 0.0156 -0.1639)
OKLCHoklch(51.89% 0.165 275.4)
XYZxyz(17.1243, 13.0916, 54.4370)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515AC5 #C5BC51
analogous
#5194C5 #515AC5 #8251C5
triadic
#515AC5 #C5515A #5AC551
tetradic
#515AC5 #C55194 #C5BC51 #51C582
square
#515AC5 #C55194 #C5BC51 #51C582
split-complementary
#515AC5 #C58251 #94C551
monochromatic
#272D75 #363FA3 #515AC5 #7F86D4 #ADB1E4

Accessibility & contrast

On white

5.80
#515AC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#515AC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515AC5
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515AC5#FFFFFF#000000##FFFFFF
##515AC51.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#116AC9
Deuteranopia (green-blind)
#0061C3
Tritanopia (blue-blind)
#007387
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #515ac5;
/* rgb */ color: rgb(81, 90, 197);
/* oklch */ color: oklch(51.9% 0.165 275.4);
Tailwind
colors: {
  custom: {
    50: '#8c88d7',
    500: '#515ac5',
    950: '#000000',
  },
}
SCSS
$custom: #515ac5;
$custom-light: #8c88d7;
$custom-dark: #000000;
JSON
{
  "hex": "#515ac5",
  "rgb": {
    "r": 81,
    "g": 90,
    "b": 197
  },
  "hsl": {
    "h": 235.345,
    "s": 50,
    "l": 54.51
  },
  "oklch": {
    "l": 0.51894,
    "c": 0.16466,
    "h": 275.4
  },
  "luminance": 0.13093
}

Semantic roles & 50–950 ramp

primary
#515AC5
secondary
#D1CEA0
accent
#CF4EDA
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #515AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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