#5159BD#5159BD

#5159BD is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.1% C 0.155 H 276.0°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5159BD
RGBrgb(81, 89, 189)
HSLhsl(236, 45%, 53%)
HSVhsv(236, 57%, 74%)
CMYKcmyk(57.1%, 52.9%, 0%, 25.9%)
CIE-LABlab(42.10, 26.48, -53.82)
CIE-LCHlch(42.10, 59.98, 296.20°)
OKLaboklab(51.12% 0.0162 -0.154)
OKLCHoklch(51.12% 0.155 276)
XYZxyz(16.1481, 12.5671, 49.7090)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159BD #BDB551
analogous
#518FBD #5159BD #7F51BD
triadic
#5159BD #BD5159 #59BD51
tetradic
#5159BD #BD518F #BDB551 #51BD7F
square
#5159BD #BD518F #BDB551 #51BD7F
split-complementary
#5159BD #BD7F51 #8FBD51
monochromatic
#292E6B #394097 #5159BD #7D83CE #AAAEDF

Accessibility & contrast

On white

5.98
#5159BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5159BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159BD
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159BD#FFFFFF#000000##FFFFFF
##5159BD1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F68C1
Deuteranopia (green-blind)
#015FBB
Tritanopia (blue-blind)
#0F7082
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5159bd;
/* rgb */ color: rgb(81, 89, 189);
/* oklch */ color: oklch(51.1% 0.155 276.0);
Tailwind
colors: {
  custom: {
    50: '#8b87d1',
    500: '#5159bd',
    950: '#000000',
  },
}
SCSS
$custom: #5159bd;
$custom-light: #8b87d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5159bd",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 189
  },
  "hsl": {
    "h": 235.556,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.51124,
    "c": 0.15489,
    "h": 276
  },
  "luminance": 0.12568
}

Semantic roles & 50–950 ramp

primary
#5159BD
secondary
#CCC99E
accent
#CB53D5
background
#F9F8FC
surface
#F1EFF9
border
#CBCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5159BD

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

Preview Lab → · Contrast checker → · Palette generator →

#5159BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva