#5155BB#5155BB

#5155BB is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.2% C 0.157 H 277.4°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#5155BB
RGBrgb(81, 85, 187)
HSLhsl(238, 44%, 53%)
HSVhsv(238, 57%, 73%)
CMYKcmyk(56.7%, 54.5%, 0%, 26.7%)
CIE-LABlab(40.95, 28.33, -54.52)
CIE-LCHlch(40.95, 61.44, 297.46°)
OKLaboklab(50.22% 0.0203 -0.1561)
OKLCHoklch(50.22% 0.157 277.4)
XYZxyz(15.6086, 11.8331, 48.4656)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155BB #BBB751
analogous
#518ABB #5155BB #8251BB
triadic
#5155BB #BB5155 #55BB51
tetradic
#5155BB #BB518A #BBB751 #51BB82
square
#5155BB #BB518A #BBB751 #51BB82
split-complementary
#5155BB #BB8251 #8ABB51
monochromatic
#292B69 #3A3E95 #5155BB #7D80CC #A9ABDD

Accessibility & contrast

On white

6.24
#5155BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5155BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155BB
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155BB#FFFFFF#000000##FFFFFF
##5155BB1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1365BF
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#156D80
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5155bb;
/* rgb */ color: rgb(81, 85, 187);
/* oklch */ color: oklch(50.2% 0.157 277.4);
Tailwind
colors: {
  custom: {
    50: '#8b84d0',
    500: '#5155bb',
    950: '#000000',
  },
}
SCSS
$custom: #5155bb;
$custom-light: #8b84d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5155bb",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 187
  },
  "hsl": {
    "h": 237.736,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50216,
    "c": 0.15744,
    "h": 277.4
  },
  "luminance": 0.11834
}

Semantic roles & 50–950 ramp

primary
#5155BB
secondary
#CBC99D
accent
#CF54D4
background
#F9F8FC
surface
#F1EFF9
border
#CBCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5155BB

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

Preview Lab → · Contrast checker → · Palette generator →

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