#5155DF#5155DF

#5155DF is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.0% C 0.205 H 275.6°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#5155DF
RGBrgb(81, 85, 223)
HSLhsl(238, 69%, 60%)
HSVhsv(238, 64%, 87%)
CMYKcmyk(63.7%, 61.9%, 0%, 12.5%)
CIE-LABlab(43.61, 40.23, -70.95)
CIE-LCHlch(43.61, 81.56, 299.55°)
OKLaboklab(53.03% 0.02 -0.2044)
OKLCHoklch(53.03% 0.205 275.6)
XYZxyz(19.9568, 13.5724, 71.3658)
Luminance0.1357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155DF #DFDB51
analogous
#519CDF #5155DF #9451DF
triadic
#5155DF #DF5155 #55DF51
tetradic
#5155DF #DF519C #DFDB51 #51DF94
square
#5155DF #DF519C #DFDB51 #51DF94
split-complementary
#5155DF #DF9451 #9CDF51
monochromatic
#1C2099 #262ACD #5155DF #8588E9 #B8BAF2

Accessibility & contrast

On white

5.65
#5155DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#5155DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155DF
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155DF#FFFFFF#000000##FFFFFF
##5155DF1.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE3
Deuteranopia (green-blind)
#0061DC
Tritanopia (blue-blind)
#007892
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5155df;
/* rgb */ color: rgb(81, 85, 223);
/* oklch */ color: oklch(53.0% 0.205 275.6);
Tailwind
colors: {
  custom: {
    50: '#9185ea',
    500: '#5155df',
    950: '#000000',
  },
}
SCSS
$custom: #5155df;
$custom-light: #9185ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5155df",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 223
  },
  "hsl": {
    "h": 238.31,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.53026,
    "c": 0.20541,
    "h": 275.6
  },
  "luminance": 0.13574
}

Semantic roles & 50–950 ramp

primary
#5155DF
secondary
#E1E0AA
accent
#E73CEC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5155DF

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

Preview Lab → · Contrast checker → · Palette generator →

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