#5155CD#5155CD

#5155CD is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.6% C 0.182 H 276.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#5155CD
RGBrgb(81, 85, 205)
HSLhsl(238, 55%, 56%)
HSVhsv(238, 60%, 80%)
CMYKcmyk(60.5%, 58.5%, 0%, 19.6%)
CIE-LABlab(42.24, 34.29, -62.88)
CIE-LCHlch(42.24, 71.62, 298.60°)
OKLaboklab(51.58% 0.0206 -0.1807)
OKLCHoklch(51.58% 0.182 276.5)
XYZxyz(17.6577, 12.6527, 59.2575)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155CD #CDC951
analogous
#5193CD #5155CD #8B51CD
triadic
#5155CD #CD5155 #55CD51
tetradic
#5155CD #CD5193 #CDC951 #51CD8B
square
#5155CD #CD5193 #CDC951 #51CD8B
split-complementary
#5155CD #CD8B51 #93CD51
monochromatic
#25277F #3236AF #5155CD #8183DB #B0B2E8

Accessibility & contrast

On white

5.95
#5155CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5155CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155CD
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155CD#FFFFFF#000000##FFFFFF
##5155CD1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#005ECB
Tritanopia (blue-blind)
#007289
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5155cd;
/* rgb */ color: rgb(81, 85, 205);
/* oklch */ color: oklch(51.6% 0.182 276.5);
Tailwind
colors: {
  custom: {
    50: '#8e85dd',
    500: '#5155cd',
    950: '#000000',
  },
}
SCSS
$custom: #5155cd;
$custom-light: #8e85dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5155cd",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 205
  },
  "hsl": {
    "h": 238.065,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51579,
    "c": 0.18191,
    "h": 276.5
  },
  "luminance": 0.12654
}

Semantic roles & 50–950 ramp

primary
#5155CD
secondary
#D7D5A3
accent
#DA49DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5155CD

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

Preview Lab → · Contrast checker → · Palette generator →

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