#515BB5#515BB5

#515BB5 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.0% C 0.141 H 275.5°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#515BB5
RGBrgb(81, 91, 181)
HSLhsl(234, 40%, 51%)
HSVhsv(234, 55%, 71%)
CMYKcmyk(55.2%, 49.7%, 0%, 29%)
CIE-LABlab(42.10, 22.56, -49.15)
CIE-LCHlch(42.10, 54.08, 294.66°)
OKLaboklab(50.96% 0.0134 -0.1403)
OKLCHoklch(50.96% 0.141 275.5)
XYZxyz(15.4722, 12.5666, 45.3174)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515BB5 #B5AB51
analogous
#518DB5 #515BB5 #7951B5
triadic
#515BB5 #B5515B #5BB551
tetradic
#515BB5 #B5518D #B5AB51 #51B579
square
#515BB5 #B5518D #B5AB51 #51B579
split-complementary
#515BB5 #B57951 #8DB551
monochromatic
#2A2F62 #3C448D #515BB5 #7C83C7 #A7ACDA

Accessibility & contrast

On white

5.98
#515BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#515BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515BB5
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515BB5#FFFFFF#000000##FFFFFF
##515BB51.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F68B8
Deuteranopia (green-blind)
#215FB3
Tritanopia (blue-blind)
#1E6F7F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #515bb5;
/* rgb */ color: rgb(81, 91, 181);
/* oklch */ color: oklch(51.0% 0.141 275.5);
Tailwind
colors: {
  custom: {
    50: '#8a89cc',
    500: '#515bb5',
    950: '#000000',
  },
}
SCSS
$custom: #515bb5;
$custom-light: #8a89cc;
$custom-dark: #000000;
JSON
{
  "hex": "#515bb5",
  "rgb": {
    "r": 81,
    "g": 91,
    "b": 181
  },
  "hsl": {
    "h": 234,
    "s": 40.323,
    "l": 51.373
  },
  "oklch": {
    "l": 0.50956,
    "c": 0.14092,
    "h": 275.5
  },
  "luminance": 0.12568
}

Semantic roles & 50–950 ramp

primary
#515BB5
secondary
#C7C39B
accent
#C458D0
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #515BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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