#5159BF#5159BF

#5159BF is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.3% C 0.158 H 276.0°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#5159BF
RGBrgb(81, 89, 191)
HSLhsl(236, 46%, 53%)
HSVhsv(236, 58%, 75%)
CMYKcmyk(57.6%, 53.4%, 0%, 25.1%)
CIE-LABlab(42.24, 27.14, -54.77)
CIE-LCHlch(42.24, 61.13, 296.36°)
OKLaboklab(51.27% 0.0164 -0.1568)
OKLCHoklch(51.27% 0.158 276)
XYZxyz(16.3667, 12.6545, 50.8602)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159BF #BFB751
analogous
#5190BF #5159BF #8051BF
triadic
#5159BF #BF5159 #59BF51
tetradic
#5159BF #BF5190 #BFB751 #51BF80
square
#5159BF #BF5190 #BFB751 #51BF80
split-complementary
#5159BF #BF8051 #90BF51
monochromatic
#282D6D #39409A #5159BF #7E84CF #AAAEE0

Accessibility & contrast

On white

5.95
#5159BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5159BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159BF
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159BF#FFFFFF#000000##FFFFFF
##5159BF1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B68C3
Deuteranopia (green-blind)
#005FBD
Tritanopia (blue-blind)
#087083
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5159bf;
/* rgb */ color: rgb(81, 89, 191);
/* oklch */ color: oklch(51.3% 0.158 276.0);
Tailwind
colors: {
  custom: {
    50: '#8b87d3',
    500: '#5159bf',
    950: '#000000',
  },
}
SCSS
$custom: #5159bf;
$custom-light: #8b87d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5159bf",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 191
  },
  "hsl": {
    "h": 235.636,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.51267,
    "c": 0.15768,
    "h": 276
  },
  "luminance": 0.12656
}

Semantic roles & 50–950 ramp

primary
#5159BF
secondary
#CECA9E
accent
#CC52D6
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5159BF

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

Preview Lab → · Contrast checker → · Palette generator →

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