#5155BF#5155BF

#5155BF is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.5% C 0.163 H 277.2°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#5155BF
RGBrgb(81, 85, 191)
HSLhsl(238, 46%, 53%)
HSVhsv(238, 58%, 75%)
CMYKcmyk(57.6%, 55.5%, 0%, 25.1%)
CIE-LABlab(41.23, 29.66, -56.40)
CIE-LCHlch(41.23, 63.72, 297.73°)
OKLaboklab(50.51% 0.0205 -0.1617)
OKLCHoklch(50.51% 0.163 277.2)
XYZxyz(16.0428, 12.0068, 50.7523)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155BF #BFBB51
analogous
#518CBF #5155BF #8451BF
triadic
#5155BF #BF5155 #55BF51
tetradic
#5155BF #BF518C #BFBB51 #51BF84
square
#5155BF #BF518C #BFBB51 #51BF84
split-complementary
#5155BF #BF8451 #8CBF51
monochromatic
#282B6D #393C9A #5155BF #7E81CF #AAACE0

Accessibility & contrast

On white

6.17
#5155BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5155BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155BF
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155BF#FFFFFF#000000##FFFFFF
##5155BF1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0566C3
Deuteranopia (green-blind)
#005DBD
Tritanopia (blue-blind)
#0B6E82
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5155bf;
/* rgb */ color: rgb(81, 85, 191);
/* oklch */ color: oklch(50.5% 0.163 277.2);
Tailwind
colors: {
  custom: {
    50: '#8b85d3',
    500: '#5155bf',
    950: '#000000',
  },
}
SCSS
$custom: #5155bf;
$custom-light: #8b85d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5155bf",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 191
  },
  "hsl": {
    "h": 237.818,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50511,
    "c": 0.16297,
    "h": 277.2
  },
  "luminance": 0.12008
}

Semantic roles & 50–950 ramp

primary
#5155BF
secondary
#CECC9E
accent
#D152D6
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5155BF

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

Preview Lab → · Contrast checker → · Palette generator →

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