#515FAC#515FAC

#515FAC is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.2% C 0.122 H 273.6°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#515FAC
RGBrgb(81, 95, 172)
HSLhsl(231, 36%, 50%)
HSVhsv(231, 53%, 67%)
CMYKcmyk(52.9%, 44.8%, 0%, 32.5%)
CIE-LABlab(42.63, 17.07, -43.02)
CIE-LCHlch(42.63, 46.28, 291.64°)
OKLaboklab(51.18% 0.0076 -0.1222)
OKLCHoklch(51.18% 0.122 273.6)
XYZxyz(14.9296, 12.9113, 40.7272)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515FAC #AC9E51
analogous
#518DAC #515FAC #7151AC
triadic
#515FAC #AC515F #5FAC51
tetradic
#515FAC #AC518D #AC9E51 #51AC71
square
#515FAC #AC518D #AC9E51 #51AC71
split-complementary
#515FAC #AC7151 #8DAC51
monochromatic
#2A3159 #3D4882 #515FAC #7A85C0 #A3ABD4

Accessibility & contrast

On white

5.86
#515FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#515FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515FAC
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515FAC#FFFFFF#000000##FFFFFF
##515FAC1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E69AF
Deuteranopia (green-blind)
#3461AA
Tritanopia (blue-blind)
#28707D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #515fac;
/* rgb */ color: rgb(81, 95, 172);
/* oklch */ color: oklch(51.2% 0.122 273.6);
Tailwind
colors: {
  custom: {
    50: '#888cc5',
    500: '#515fac',
    950: '#000000',
  },
}
SCSS
$custom: #515fac;
$custom-light: #888cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#515fac",
  "rgb": {
    "r": 81,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 230.769,
    "s": 35.968,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5118,
    "c": 0.12248,
    "h": 273.6
  },
  "luminance": 0.12912
}

Semantic roles & 50–950 ramp

primary
#515FAC
secondary
#C1BB98
accent
#BB5CCC
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #515FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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