#5155DE#5155DE

#5155DE is a mid, highly saturated blue. Relative luminance 0.135; OKLCH L 52.9% C 0.204 H 275.6°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#5155DE
RGBrgb(81, 85, 222)
HSLhsl(238, 68%, 59%)
HSVhsv(238, 64%, 87%)
CMYKcmyk(63.5%, 61.7%, 0%, 12.9%)
CIE-LABlab(43.53, 39.90, -70.51)
CIE-LCHlch(43.53, 81.01, 299.50°)
OKLaboklab(52.94% 0.02 -0.2031)
OKLCHoklch(52.94% 0.204 275.6)
XYZxyz(19.8223, 13.5186, 70.6578)
Luminance0.1352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155DE #DEDA51
analogous
#519CDE #5155DE #9451DE
triadic
#5155DE #DE5155 #55DE51
tetradic
#5155DE #DE519C #DEDA51 #51DE94
square
#5155DE #DE519C #DEDA51 #51DE94
split-complementary
#5155DE #DE9451 #9CDE51
monochromatic
#1D2098 #272BCB #5155DE #8487E8 #B8BAF2

Accessibility & contrast

On white

5.67
#5155DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#5155DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155DE
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155DE#FFFFFF#000000##FFFFFF
##5155DE1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE2
Deuteranopia (green-blind)
#0061DB
Tritanopia (blue-blind)
#007791
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5155de;
/* rgb */ color: rgb(81, 85, 222);
/* oklch */ color: oklch(52.9% 0.204 275.6);
Tailwind
colors: {
  custom: {
    50: '#9185e9',
    500: '#5155de',
    950: '#000000',
  },
}
SCSS
$custom: #5155de;
$custom-light: #9185e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5155de",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 222
  },
  "hsl": {
    "h": 238.298,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.52944,
    "c": 0.20413,
    "h": 275.6
  },
  "luminance": 0.1352
}

Semantic roles & 50–950 ramp

primary
#5155DE
secondary
#E1DFAA
accent
#E63DEB
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5155DE

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

Preview Lab → · Contrast checker → · Palette generator →

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