#5155DC#5155DC

#5155DC is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 52.8% C 0.202 H 275.7°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#5155DC
RGBrgb(81, 85, 220)
HSLhsl(238, 67%, 59%)
HSVhsv(238, 63%, 86%)
CMYKcmyk(63.2%, 61.4%, 0%, 13.7%)
CIE-LABlab(43.38, 39.24, -69.62)
CIE-LCHlch(43.38, 79.92, 299.41°)
OKLaboklab(52.78% 0.0201 -0.2005)
OKLCHoklch(52.78% 0.202 275.7)
XYZxyz(19.5559, 13.4120, 69.2545)
Luminance0.1341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155DC #DCD851
analogous
#519BDC #5155DC #9351DC
triadic
#5155DC #DC5155 #55DC51
tetradic
#5155DC #DC519B #DCD851 #51DC93
square
#5155DC #DC519B #DCD851 #51DC93
split-complementary
#5155DC #DC9351 #9BDC51
monochromatic
#1E2195 #282DC8 #5155DC #8487E6 #B7B9F0

Accessibility & contrast

On white

5.70
#5155DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5155DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155DC
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155DC#FFFFFF#000000##FFFFFF
##5155DC1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE0
Deuteranopia (green-blind)
#0060D9
Tritanopia (blue-blind)
#007790
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5155dc;
/* rgb */ color: rgb(81, 85, 220);
/* oklch */ color: oklch(52.8% 0.202 275.7);
Tailwind
colors: {
  custom: {
    50: '#9085e8',
    500: '#5155dc',
    950: '#000000',
  },
}
SCSS
$custom: #5155dc;
$custom-light: #9085e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5155dc",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 220
  },
  "hsl": {
    "h": 238.273,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.5278,
    "c": 0.20156,
    "h": 275.7
  },
  "luminance": 0.13414
}

Semantic roles & 50–950 ramp

primary
#5155DC
secondary
#E0DEA9
accent
#E53EE9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5155DC

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

Preview Lab → · Contrast checker → · Palette generator →

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