#515BB2#515BB2

#515BB2 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.8% C 0.137 H 275.5°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#515BB2
RGBrgb(81, 91, 178)
HSLhsl(234, 39%, 51%)
HSVhsv(234, 54%, 70%)
CMYKcmyk(54.5%, 48.9%, 0%, 30.2%)
CIE-LABlab(41.91, 21.57, -47.69)
CIE-LCHlch(41.91, 52.34, 294.34°)
OKLaboklab(50.75% 0.0131 -0.136)
OKLCHoklch(50.75% 0.137 275.5)
XYZxyz(15.1677, 12.4448, 43.7137)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515BB2 #B2A851
analogous
#518BB2 #515BB2 #7751B2
triadic
#515BB2 #B2515B #5BB251
tetradic
#515BB2 #B2518B #B2A851 #51B277
square
#515BB2 #B2518B #B2A851 #51B277
split-complementary
#515BB2 #B27751 #8BB251
monochromatic
#2A2F5F #3D4589 #515BB2 #7B83C5 #A6ABD8

Accessibility & contrast

On white

6.02
#515BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#515BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515BB2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515BB2#FFFFFF#000000##FFFFFF
##515BB21.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3267B5
Deuteranopia (green-blind)
#255FB0
Tritanopia (blue-blind)
#226E7E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #515bb2;
/* rgb */ color: rgb(81, 91, 178);
/* oklch */ color: oklch(50.8% 0.137 275.5);
Tailwind
colors: {
  custom: {
    50: '#8989c9',
    500: '#515bb2',
    950: '#000000',
  },
}
SCSS
$custom: #515bb2;
$custom-light: #8989c9;
$custom-dark: #000000;
JSON
{
  "hex": "#515bb2",
  "rgb": {
    "r": 81,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 233.814,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.50753,
    "c": 0.13662,
    "h": 275.5
  },
  "luminance": 0.12446
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #515BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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