#5159BC#5159BC

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

Color values

HEX#5159BC
RGBrgb(81, 89, 188)
HSLhsl(236, 44%, 53%)
HSVhsv(236, 57%, 74%)
CMYKcmyk(56.9%, 52.7%, 0%, 26.3%)
CIE-LABlab(42.04, 26.15, -53.35)
CIE-LCHlch(42.04, 59.41, 296.11°)
OKLaboklab(51.05% 0.0162 -0.1526)
OKLCHoklch(51.05% 0.154 276)
XYZxyz(16.0399, 12.5238, 49.1393)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159BC #BCB451
analogous
#518EBC #5159BC #7E51BC
triadic
#5159BC #BC5159 #59BC51
tetradic
#5159BC #BC518E #BCB451 #51BC7E
square
#5159BC #BC518E #BCB451 #51BC7E
split-complementary
#5159BC #BC7E51 #8EBC51
monochromatic
#292E6A #3A4196 #5159BC #7D83CD #A9ADDE

Accessibility & contrast

On white

5.99
#5159BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5159BC
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159BC#FFFFFF#000000##FFFFFF
##5159BC1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2068BF
Deuteranopia (green-blind)
#055FBA
Tritanopia (blue-blind)
#117082
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5159bc;
/* rgb */ color: rgb(81, 89, 188);
/* oklch */ color: oklch(51.1% 0.153 276.0);
Tailwind
colors: {
  custom: {
    50: '#8b87d1',
    500: '#5159bc',
    950: '#000000',
  },
}
SCSS
$custom: #5159bc;
$custom-light: #8b87d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5159bc",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 188
  },
  "hsl": {
    "h": 235.514,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51052,
    "c": 0.1535,
    "h": 276
  },
  "luminance": 0.12525
}

Semantic roles & 50–950 ramp

primary
#5159BC
secondary
#CCC89D
accent
#CB54D4
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0D0B14
muted
#7D7C82

Preview Lab

Preview with #5159BC

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

Preview Lab → · Contrast checker → · Palette generator →

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