#5155CE#5155CE

#5155CE is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.7% C 0.183 H 276.4°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#5155CE
RGBrgb(81, 85, 206)
HSLhsl(238, 56%, 56%)
HSVhsv(238, 61%, 81%)
CMYKcmyk(60.7%, 58.7%, 0%, 19.2%)
CIE-LABlab(42.31, 34.62, -63.34)
CIE-LCHlch(42.31, 72.18, 298.66°)
OKLaboklab(51.66% 0.0206 -0.1821)
OKLCHoklch(51.66% 0.183 276.4)
XYZxyz(17.7788, 12.7012, 59.8952)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155CE #CECA51
analogous
#5194CE #5155CE #8C51CE
triadic
#5155CE #CE5155 #55CE51
tetradic
#5155CE #CE5194 #CECA51 #51CE8C
square
#5155CE #CE5194 #CECA51 #51CE8C
split-complementary
#5155CE #CE8C51 #94CE51
monochromatic
#242780 #3236B0 #5155CE #8184DB #B1B2E9

Accessibility & contrast

On white

5.93
#5155CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#5155CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155CE
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155CE#FFFFFF#000000##FFFFFF
##5155CE1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5155ce;
/* rgb */ color: rgb(81, 85, 206);
/* oklch */ color: oklch(51.7% 0.183 276.4);
Tailwind
colors: {
  custom: {
    50: '#8e85de',
    500: '#5155ce',
    950: '#000000',
  },
}
SCSS
$custom: #5155ce;
$custom-light: #8e85de;
$custom-dark: #000000;
JSON
{
  "hex": "#5155ce",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 206
  },
  "hsl": {
    "h": 238.08,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51658,
    "c": 0.18324,
    "h": 276.4
  },
  "luminance": 0.12703
}

Semantic roles & 50–950 ramp

primary
#5155CE
secondary
#D7D5A4
accent
#DB48DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5155CE

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

Preview Lab → · Contrast checker → · Palette generator →

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