#5158BB#5158BB

#5158BB is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.8% C 0.153 H 276.4°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#5158BB
RGBrgb(81, 88, 187)
HSLhsl(236, 44%, 53%)
HSVhsv(236, 57%, 73%)
CMYKcmyk(56.7%, 52.9%, 0%, 26.7%)
CIE-LABlab(41.71, 26.45, -53.28)
CIE-LCHlch(41.71, 59.49, 296.40°)
OKLaboklab(50.79% 0.0172 -0.1525)
OKLCHoklch(50.79% 0.153 276.4)
XYZxyz(15.8498, 12.3155, 48.5460)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5158BB #BBB451
analogous
#518DBB #5158BB #7F51BB
triadic
#5158BB #BB5158 #58BB51
tetradic
#5158BB #BB518D #BBB451 #51BB7F
square
#5158BB #BB518D #BBB451 #51BB7F
split-complementary
#5158BB #BB7F51 #8DBB51
monochromatic
#292D69 #3A4095 #5158BB #7D82CC #A9ACDD

Accessibility & contrast

On white

6.06
#5158BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5158BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5158BB
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5158BB#FFFFFF#000000##FFFFFF
##5158BB1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F67BE
Deuteranopia (green-blind)
#035EB9
Tritanopia (blue-blind)
#146F81
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5158bb;
/* rgb */ color: rgb(81, 88, 187);
/* oklch */ color: oklch(50.8% 0.153 276.4);
Tailwind
colors: {
  custom: {
    50: '#8b87d0',
    500: '#5158bb',
    950: '#000000',
  },
}
SCSS
$custom: #5158bb;
$custom-light: #8b87d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5158bb",
  "rgb": {
    "r": 81,
    "g": 88,
    "b": 187
  },
  "hsl": {
    "h": 236.038,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50788,
    "c": 0.15343,
    "h": 276.4
  },
  "luminance": 0.12317
}

Semantic roles & 50–950 ramp

primary
#5158BB
secondary
#CBC89D
accent
#CB54D4
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0D0B14
muted
#7D7C82

Preview Lab

Preview with #5158BB

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

Preview Lab → · Contrast checker → · Palette generator →

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