#5155BC#5155BC

#5155BC is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.3% C 0.159 H 277.4°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#5155BC
RGBrgb(81, 85, 188)
HSLhsl(238, 44%, 53%)
HSVhsv(238, 57%, 74%)
CMYKcmyk(56.9%, 54.8%, 0%, 26.3%)
CIE-LABlab(41.02, 28.66, -54.99)
CIE-LCHlch(41.02, 62.01, 297.53°)
OKLaboklab(50.29% 0.0204 -0.1575)
OKLCHoklch(50.29% 0.159 277.4)
XYZxyz(15.7160, 11.8761, 49.0314)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155BC #BCB851
analogous
#518ABC #5155BC #8251BC
triadic
#5155BC #BC5155 #55BC51
tetradic
#5155BC #BC518A #BCB851 #51BC82
square
#5155BC #BC518A #BCB851 #51BC82
split-complementary
#5155BC #BC8251 #8ABC51
monochromatic
#292B6A #3A3D96 #5155BC #7D80CD #A9ABDE

Accessibility & contrast

On white

6.22
#5155BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#5155BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155BC
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155BC#FFFFFF#000000##FFFFFF
##5155BC1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1065C0
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#136D80
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5155bc;
/* rgb */ color: rgb(81, 85, 188);
/* oklch */ color: oklch(50.3% 0.159 277.4);
Tailwind
colors: {
  custom: {
    50: '#8b85d1',
    500: '#5155bc',
    950: '#000000',
  },
}
SCSS
$custom: #5155bc;
$custom-light: #8b85d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5155bc",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 188
  },
  "hsl": {
    "h": 237.757,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5029,
    "c": 0.15883,
    "h": 277.4
  },
  "luminance": 0.11877
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5155BC

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

Preview Lab → · Contrast checker → · Palette generator →

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