#515BC2#515BC2

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

Color values

HEX#515BC2
RGBrgb(81, 91, 194)
HSLhsl(235, 48%, 54%)
HSVhsv(235, 58%, 76%)
CMYKcmyk(58.2%, 53.1%, 0%, 23.9%)
CIE-LABlab(42.95, 26.89, -55.36)
CIE-LCHlch(42.95, 61.55, 295.90°)
OKLaboklab(51.87% 0.0145 -0.1586)
OKLCHoklch(51.87% 0.159 275.2)
XYZxyz(16.8689, 13.1253, 52.6730)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515BC2 #C2B851
analogous
#5194C2 #515BC2 #8051C2
triadic
#515BC2 #C2515B #5BC251
tetradic
#515BC2 #C25194 #C2B851 #51C280
square
#515BC2 #C25194 #C2B851 #51C280
split-complementary
#515BC2 #C28051 #94C251
monochromatic
#282E71 #37419E #515BC2 #7E86D2 #ACB0E2

Accessibility & contrast

On white

5.79
#515BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#515BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515BC2
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515BC2#FFFFFF#000000##FFFFFF
##515BC21.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D6AC6
Deuteranopia (green-blind)
#0061C0
Tritanopia (blue-blind)
#007386
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #515bc2;
/* rgb */ color: rgb(81, 91, 194);
/* oklch */ color: oklch(51.9% 0.159 275.2);
Tailwind
colors: {
  custom: {
    50: '#8c89d5',
    500: '#515bc2',
    950: '#000000',
  },
}
SCSS
$custom: #515bc2;
$custom-light: #8c89d5;
$custom-dark: #000000;
JSON
{
  "hex": "#515bc2",
  "rgb": {
    "r": 81,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 234.69,
    "s": 48.085,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51867,
    "c": 0.15922,
    "h": 275.2
  },
  "luminance": 0.13127
}

Semantic roles & 50–950 ramp

primary
#515BC2
secondary
#D0CB9F
accent
#CC50D8
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #515BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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