#515CB2#515CB2

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

Color values

HEX#515CB2
RGBrgb(81, 92, 178)
HSLhsl(233, 39%, 51%)
HSVhsv(233, 54%, 70%)
CMYKcmyk(54.5%, 48.3%, 0%, 30.2%)
CIE-LABlab(42.18, 20.94, -47.26)
CIE-LCHlch(42.18, 51.69, 293.89°)
OKLaboklab(50.96% 0.0119 -0.1347)
OKLCHoklch(50.96% 0.135 275.1)
XYZxyz(15.2538, 12.6170, 43.7424)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515CB2 #B2A751
analogous
#518CB2 #515CB2 #7651B2
triadic
#515CB2 #B2515C #5CB251
tetradic
#515CB2 #B2518C #B2A751 #51B276
square
#515CB2 #B2518C #B2A751 #51B276
split-complementary
#515CB2 #B27651 #8CB251
monochromatic
#2A305F #3D4589 #515CB2 #7B84C5 #A6ABD8

Accessibility & contrast

On white

5.96
#515CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#515CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515CB2
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515CB2#FFFFFF#000000##FFFFFF
##515CB21.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3468B5
Deuteranopia (green-blind)
#2860B0
Tritanopia (blue-blind)
#216F7E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #515cb2;
/* rgb */ color: rgb(81, 92, 178);
/* oklch */ color: oklch(51.0% 0.135 275.1);
Tailwind
colors: {
  custom: {
    50: '#898ac9',
    500: '#515cb2',
    950: '#000000',
  },
}
SCSS
$custom: #515cb2;
$custom-light: #898ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#515cb2",
  "rgb": {
    "r": 81,
    "g": 92,
    "b": 178
  },
  "hsl": {
    "h": 233.196,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.50955,
    "c": 0.13526,
    "h": 275.1
  },
  "luminance": 0.12618
}

Semantic roles & 50–950 ramp

primary
#515CB2
secondary
#C5C09A
accent
#C159CF
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #515CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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