#5155D2#5155D2

#5155D2 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.0% C 0.189 H 276.2°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5155D2
RGBrgb(81, 85, 210)
HSLhsl(238, 59%, 57%)
HSVhsv(238, 61%, 82%)
CMYKcmyk(61.4%, 59.5%, 0%, 17.6%)
CIE-LABlab(42.61, 35.94, -65.15)
CIE-LCHlch(42.61, 74.41, 298.88°)
OKLaboklab(51.97% 0.0205 -0.1874)
OKLCHoklch(51.97% 0.189 276.2)
XYZxyz(18.2709, 12.8980, 62.4870)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155D2 #D2CE51
analogous
#5195D2 #5155D2 #8E51D2
triadic
#5155D2 #D25155 #55D251
tetradic
#5155D2 #D25195 #D2CE51 #51D28E
square
#5155D2 #D25195 #D2CE51 #51D28E
split-complementary
#5155D2 #D28E51 #95D251
monochromatic
#232686 #2F33B7 #5155D2 #8285DF #B2B4EB

Accessibility & contrast

On white

5.87
#5155D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5155D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155D2
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155D2#FFFFFF#000000##FFFFFF
##5155D21.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#005FCF
Tritanopia (blue-blind)
#00748B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5155d2;
/* rgb */ color: rgb(81, 85, 210);
/* oklch */ color: oklch(52.0% 0.189 276.2);
Tailwind
colors: {
  custom: {
    50: '#8f85e1',
    500: '#5155d2',
    950: '#000000',
  },
}
SCSS
$custom: #5155d2;
$custom-light: #8f85e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5155d2",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 210
  },
  "hsl": {
    "h": 238.14,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51973,
    "c": 0.18853,
    "h": 276.2
  },
  "luminance": 0.12899
}

Semantic roles & 50–950 ramp

primary
#5155D2
secondary
#DAD8A5
accent
#DD46E2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5155D2

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

Preview Lab → · Contrast checker → · Palette generator →

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