#515BCB#515BCB

#515BCB is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.5% C 0.172 H 275.0°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#515BCB
RGBrgb(81, 91, 203)
HSLhsl(235, 54%, 56%)
HSVhsv(235, 60%, 80%)
CMYKcmyk(60.1%, 55.2%, 0%, 20.4%)
CIE-LABlab(43.57, 29.89, -59.57)
CIE-LCHlch(43.57, 66.65, 296.65°)
OKLaboklab(52.53% 0.0149 -0.1709)
OKLCHoklch(52.53% 0.172 275)
XYZxyz(17.9104, 13.5419, 58.1584)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515BCB #CBC151
analogous
#5198CB #515BCB #8451CB
triadic
#515BCB #CB515B #5BCB51
tetradic
#515BCB #CB5198 #CBC151 #51CB84
square
#515BCB #CB5198 #CBC151 #51CB84
split-complementary
#515BCB #CB8451 #98CB51
monochromatic
#252C7C #333DAC #515BCB #8087D9 #AFB4E7

Accessibility & contrast

On white

5.66
#515BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#515BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515BCB
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515BCB#FFFFFF#000000##FFFFFF
##515BCB1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#016CCF
Deuteranopia (green-blind)
#0062C9
Tritanopia (blue-blind)
#00758A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #515bcb;
/* rgb */ color: rgb(81, 91, 203);
/* oklch */ color: oklch(52.5% 0.172 275.0);
Tailwind
colors: {
  custom: {
    50: '#8d89dc',
    500: '#515bcb',
    950: '#000000',
  },
}
SCSS
$custom: #515bcb;
$custom-light: #8d89dc;
$custom-dark: #000000;
JSON
{
  "hex": "#515bcb",
  "rgb": {
    "r": 81,
    "g": 91,
    "b": 203
  },
  "hsl": {
    "h": 235.082,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.52526,
    "c": 0.17158,
    "h": 275
  },
  "luminance": 0.13543
}

Semantic roles & 50–950 ramp

primary
#515BCB
secondary
#D5D1A3
accent
#D14ADD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #515BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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