#5159BB#5159BB

#5159BB is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.0% C 0.152 H 276.1°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#5159BB
RGBrgb(81, 89, 187)
HSLhsl(235, 44%, 53%)
HSVhsv(235, 57%, 73%)
CMYKcmyk(56.7%, 52.4%, 0%, 26.7%)
CIE-LABlab(41.97, 25.82, -52.87)
CIE-LCHlch(41.97, 58.84, 296.03°)
OKLaboklab(50.98% 0.0161 -0.1512)
OKLCHoklch(50.98% 0.152 276.1)
XYZxyz(15.9325, 12.4808, 48.5735)
Luminance0.1248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159BB #BBB351
analogous
#518EBB #5159BB #7E51BB
triadic
#5159BB #BB5159 #59BB51
tetradic
#5159BB #BB518E #BBB351 #51BB7E
square
#5159BB #BB518E #BBB351 #51BB7E
split-complementary
#5159BB #BB7E51 #8EBB51
monochromatic
#292E69 #3A4195 #5159BB #7D83CC #A9ADDD

Accessibility & contrast

On white

6.01
#5159BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5159BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159BB
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159BB#FFFFFF#000000##FFFFFF
##5159BB1.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2268BE
Deuteranopia (green-blind)
#0A5FB9
Tritanopia (blue-blind)
#146F81
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5159bb;
/* rgb */ color: rgb(81, 89, 187);
/* oklch */ color: oklch(51.0% 0.152 276.1);
Tailwind
colors: {
  custom: {
    50: '#8b87d0',
    500: '#5159bb',
    950: '#000000',
  },
}
SCSS
$custom: #5159bb;
$custom-light: #8b87d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5159bb",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 187
  },
  "hsl": {
    "h": 235.472,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50981,
    "c": 0.15209,
    "h": 276.1
  },
  "luminance": 0.12482
}

Semantic roles & 50–950 ramp

primary
#5159BB
secondary
#CBC79D
accent
#CA54D4
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0D0B14
muted
#7D7C82

Preview Lab

Preview with #5159BB

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

Preview Lab → · Contrast checker → · Palette generator →

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