#5155D9#5155D9

#5155D9 is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.5% C 0.198 H 275.9°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#5155D9
RGBrgb(81, 85, 217)
HSLhsl(238, 64%, 58%)
HSVhsv(238, 63%, 85%)
CMYKcmyk(62.7%, 60.8%, 0%, 14.9%)
CIE-LABlab(43.14, 38.25, -68.29)
CIE-LCHlch(43.14, 78.27, 299.25°)
OKLaboklab(52.54% 0.0203 -0.1966)
OKLCHoklch(52.54% 0.198 275.9)
XYZxyz(19.1621, 13.2545, 67.1808)
Luminance0.1326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155D9 #D9D551
analogous
#5199D9 #5155D9 #9151D9
triadic
#5155D9 #D95155 #55D951
tetradic
#5155D9 #D95199 #D9D551 #51D991
square
#5155D9 #D95199 #D9D551 #51D991
split-complementary
#5155D9 #D99151 #99D951
monochromatic
#1F2390 #2A2FC2 #5155D9 #8386E4 #B5B7EF

Accessibility & contrast

On white

5.75
#5155D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#5155D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155D9
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155D9#FFFFFF#000000##FFFFFF
##5155D91.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5155d9;
/* rgb */ color: rgb(81, 85, 217);
/* oklch */ color: oklch(52.5% 0.198 275.9);
Tailwind
colors: {
  custom: {
    50: '#9085e6',
    500: '#5155d9',
    950: '#000000',
  },
}
SCSS
$custom: #5155d9;
$custom-light: #9085e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5155d9",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 217
  },
  "hsl": {
    "h": 238.235,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.52535,
    "c": 0.19767,
    "h": 275.9
  },
  "luminance": 0.13256
}

Semantic roles & 50–950 ramp

primary
#5155D9
secondary
#DEDCA8
accent
#E241E7
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5155D9

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

Preview Lab → · Contrast checker → · Palette generator →

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