#515FAF#515FAF

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

Color values

HEX#515FAF
RGBrgb(81, 95, 175)
HSLhsl(231, 37%, 50%)
HSVhsv(231, 54%, 69%)
CMYKcmyk(53.7%, 45.7%, 0%, 31.4%)
CIE-LABlab(42.81, 18.05, -44.50)
CIE-LCHlch(42.81, 48.02, 292.08°)
OKLaboklab(51.37% 0.0081 -0.1266)
OKLCHoklch(51.37% 0.127 273.6)
XYZxyz(15.2209, 13.0279, 42.2617)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515FAF #AFA151
analogous
#518EAF #515FAF #7251AF
triadic
#515FAF #AF515F #5FAF51
tetradic
#515FAF #AF518E #AFA151 #51AF72
square
#515FAF #AF518E #AFA151 #51AF72
split-complementary
#515FAF #AF7251 #8EAF51
monochromatic
#2A315C #3D4885 #515FAF #7B86C2 #A5ACD6

Accessibility & contrast

On white

5.82
#515FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#515FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515FAF
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515FAF#FFFFFF#000000##FFFFFF
##515FAF1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C69B2
Deuteranopia (green-blind)
#3161AD
Tritanopia (blue-blind)
#24707E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #515faf;
/* rgb */ color: rgb(81, 95, 175);
/* oklch */ color: oklch(51.4% 0.127 273.6);
Tailwind
colors: {
  custom: {
    50: '#898cc7',
    500: '#515faf',
    950: '#000000',
  },
}
SCSS
$custom: #515faf;
$custom-light: #898cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#515faf",
  "rgb": {
    "r": 81,
    "g": 95,
    "b": 175
  },
  "hsl": {
    "h": 231.064,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51371,
    "c": 0.12685,
    "h": 273.6
  },
  "luminance": 0.13029
}

Semantic roles & 50–950 ramp

primary
#515FAF
secondary
#C3BD99
accent
#BC5BCD
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #515FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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