#5155CB#5155CB

#5155CB is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.4% C 0.179 H 276.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5155CB
RGBrgb(81, 85, 203)
HSLhsl(238, 54%, 56%)
HSVhsv(238, 60%, 80%)
CMYKcmyk(60.1%, 58.1%, 0%, 20.4%)
CIE-LABlab(42.09, 33.62, -61.97)
CIE-LCHlch(42.09, 70.50, 298.48°)
OKLaboklab(51.42% 0.0206 -0.1781)
OKLCHoklch(51.42% 0.179 276.6)
XYZxyz(17.4178, 12.5568, 57.9942)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155CB #CBC751
analogous
#5192CB #5155CB #8A51CB
triadic
#5155CB #CB5155 #55CB51
tetradic
#5155CB #CB5192 #CBC751 #51CB8A
square
#5155CB #CB5192 #CBC751 #51CB8A
split-complementary
#5155CB #CB8A51 #92CB51
monochromatic
#25287C #3337AC #5155CB #8083D9 #AFB1E7

Accessibility & contrast

On white

5.98
#5155CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5155CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155CB
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155CB#FFFFFF#000000##FFFFFF
##5155CB1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#007188
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5155cb;
/* rgb */ color: rgb(81, 85, 203);
/* oklch */ color: oklch(51.4% 0.179 276.6);
Tailwind
colors: {
  custom: {
    50: '#8d85dc',
    500: '#5155cb',
    950: '#000000',
  },
}
SCSS
$custom: #5155cb;
$custom-light: #8d85dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5155cb",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 203
  },
  "hsl": {
    "h": 238.033,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51424,
    "c": 0.17924,
    "h": 276.6
  },
  "luminance": 0.12558
}

Semantic roles & 50–950 ramp

primary
#5155CB
secondary
#D5D4A3
accent
#D94ADD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5155CB

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

Preview Lab → · Contrast checker → · Palette generator →

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