#5155DA#5155DA

#5155DA is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.6% C 0.199 H 275.8°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5155DA
RGBrgb(81, 85, 218)
HSLhsl(238, 65%, 59%)
HSVhsv(238, 63%, 85%)
CMYKcmyk(62.8%, 61%, 0%, 14.5%)
CIE-LABlab(43.22, 38.58, -68.74)
CIE-LCHlch(43.22, 78.82, 299.30°)
OKLaboklab(52.62% 0.0202 -0.1979)
OKLCHoklch(52.62% 0.199 275.8)
XYZxyz(19.2926, 13.3067, 67.8678)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155DA #DAD651
analogous
#5199DA #5155DA #9151DA
triadic
#5155DA #DA5155 #55DA51
tetradic
#5155DA #DA5199 #DAD651 #51DA91
square
#5155DA #DA5199 #DAD651 #51DA91
split-complementary
#5155DA #DA9151 #99DA51
monochromatic
#1F2292 #2A2EC4 #5155DA #8386E5 #B6B8EF

Accessibility & contrast

On white

5.74
#5155DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5155DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155DA
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155DA#FFFFFF#000000##FFFFFF
##5155DA1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDE
Deuteranopia (green-blind)
#0060D7
Tritanopia (blue-blind)
#00768F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5155da;
/* rgb */ color: rgb(81, 85, 218);
/* oklch */ color: oklch(52.6% 0.199 275.8);
Tailwind
colors: {
  custom: {
    50: '#9085e6',
    500: '#5155da',
    950: '#000000',
  },
}
SCSS
$custom: #5155da;
$custom-light: #9085e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5155da",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 218
  },
  "hsl": {
    "h": 238.248,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.52617,
    "c": 0.19897,
    "h": 275.8
  },
  "luminance": 0.13308
}

Semantic roles & 50–950 ramp

primary
#5155DA
secondary
#DEDDA8
accent
#E340E8
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5155DA

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

Preview Lab → · Contrast checker → · Palette generator →

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