#5155DD#5155DD

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

Color values

HEX#5155DD
RGBrgb(81, 85, 221)
HSLhsl(238, 67%, 59%)
HSVhsv(238, 63%, 87%)
CMYKcmyk(63.3%, 61.5%, 0%, 13.3%)
CIE-LABlab(43.46, 39.57, -70.07)
CIE-LCHlch(43.46, 80.47, 299.45°)
OKLaboklab(52.86% 0.0201 -0.2018)
OKLCHoklch(52.86% 0.203 275.7)
XYZxyz(19.6887, 13.4651, 69.9541)
Luminance0.1347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155DD #DDD951
analogous
#519BDD #5155DD #9351DD
triadic
#5155DD #DD5155 #55DD51
tetradic
#5155DD #DD519B #DDD951 #51DD93
square
#5155DD #DD519B #DDD951 #51DD93
split-complementary
#5155DD #DD9351 #9BDD51
monochromatic
#1D2196 #272CC9 #5155DD #8487E7 #B7B9F1

Accessibility & contrast

On white

5.69
#5155DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#5155DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155DD
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155DD#FFFFFF#000000##FFFFFF
##5155DD1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5155dd;
/* rgb */ color: rgb(81, 85, 221);
/* oklch */ color: oklch(52.9% 0.203 275.7);
Tailwind
colors: {
  custom: {
    50: '#9185e9',
    500: '#5155dd',
    950: '#000000',
  },
}
SCSS
$custom: #5155dd;
$custom-light: #9185e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5155dd",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 221
  },
  "hsl": {
    "h": 238.286,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.52862,
    "c": 0.20284,
    "h": 275.7
  },
  "luminance": 0.13467
}

Semantic roles & 50–950 ramp

primary
#5155DD
secondary
#E0DFAA
accent
#E53EEA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5155DD

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

Preview Lab → · Contrast checker → · Palette generator →

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