#5155C8#5155C8

#5155C8 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.2% C 0.175 H 276.8°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5155C8
RGBrgb(81, 85, 200)
HSLhsl(238, 52%, 55%)
HSVhsv(238, 60%, 78%)
CMYKcmyk(59.5%, 57.5%, 0%, 21.6%)
CIE-LABlab(41.87, 32.63, -60.59)
CIE-LCHlch(41.87, 68.82, 298.31°)
OKLaboklab(51.19% 0.0206 -0.174)
OKLCHoklch(51.19% 0.175 276.8)
XYZxyz(17.0638, 12.4152, 56.1296)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155C8 #C8C451
analogous
#5191C8 #5155C8 #8851C8
triadic
#5155C8 #C85155 #55C851
tetradic
#5155C8 #C85191 #C8C451 #51C888
square
#5155C8 #C85191 #C8C451 #51C888
split-complementary
#5155C8 #C88851 #91C851
monochromatic
#262979 #3539A7 #5155C8 #8082D7 #AEB0E5

Accessibility & contrast

On white

6.03
#5155C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5155C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155C8
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155C8#FFFFFF#000000##FFFFFF
##5155C81.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CC
Deuteranopia (green-blind)
#005EC6
Tritanopia (blue-blind)
#007086
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5155c8;
/* rgb */ color: rgb(81, 85, 200);
/* oklch */ color: oklch(51.2% 0.175 276.8);
Tailwind
colors: {
  custom: {
    50: '#8d85d9',
    500: '#5155c8',
    950: '#000000',
  },
}
SCSS
$custom: #5155c8;
$custom-light: #8d85d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5155c8",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 200
  },
  "hsl": {
    "h": 237.983,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51192,
    "c": 0.17521,
    "h": 276.8
  },
  "luminance": 0.12416
}

Semantic roles & 50–950 ramp

primary
#5155C8
secondary
#D3D2A1
accent
#D74CDB
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5155C8

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

Preview Lab → · Contrast checker → · Palette generator →

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