#515FB2#515FB2

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

Color values

HEX#515FB2
RGBrgb(81, 95, 178)
HSLhsl(231, 39%, 51%)
HSVhsv(231, 54%, 70%)
CMYKcmyk(54.5%, 46.6%, 0%, 30.2%)
CIE-LABlab(42.98, 19.04, -45.98)
CIE-LCHlch(42.98, 49.76, 292.50°)
OKLaboklab(51.57% 0.0085 -0.1309)
OKLCHoklch(51.57% 0.131 273.7)
XYZxyz(15.5188, 13.1470, 43.8307)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515FB2 #B2A451
analogous
#518FB2 #515FB2 #7351B2
triadic
#515FB2 #B2515F #5FB251
tetradic
#515FB2 #B2518F #B2A451 #51B273
square
#515FB2 #B2518F #B2A451 #51B273
split-complementary
#515FB2 #B27351 #8FB251
monochromatic
#2A325F #3D4889 #515FB2 #7B86C5 #A6ADD8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##515FB2#FFFFFF#000000##FFFFFF
##515FB21.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)
#3A6AB5
Deuteranopia (green-blind)
#2E62B0
Tritanopia (blue-blind)
#217180
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #515fb2;
/* rgb */ color: rgb(81, 95, 178);
/* oklch */ color: oklch(51.6% 0.131 273.7);
Tailwind
colors: {
  custom: {
    50: '#898cc9',
    500: '#515fb2',
    950: '#000000',
  },
}
SCSS
$custom: #515fb2;
$custom-light: #898cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#515fb2",
  "rgb": {
    "r": 81,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 231.34,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51565,
    "c": 0.1312,
    "h": 273.7
  },
  "luminance": 0.13148
}

Semantic roles & 50–950 ramp

primary
#515FB2
secondary
#C5BF9A
accent
#BE59CF
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #515FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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