#5155D8#5155D8

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

Color values

HEX#5155D8
RGBrgb(81, 85, 216)
HSLhsl(238, 63%, 58%)
HSVhsv(238, 63%, 85%)
CMYKcmyk(62.5%, 60.6%, 0%, 15.3%)
CIE-LABlab(43.07, 37.92, -67.85)
CIE-LCHlch(43.07, 77.72, 299.20°)
OKLaboklab(52.45% 0.0203 -0.1953)
OKLCHoklch(52.45% 0.196 275.9)
XYZxyz(19.0325, 13.2026, 66.4978)
Luminance0.1320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155D8 #D8D451
analogous
#5198D8 #5155D8 #9051D8
triadic
#5155D8 #D85155 #55D851
tetradic
#5155D8 #D85198 #D8D451 #51D890
square
#5155D8 #D85198 #D8D451 #51D890
split-complementary
#5155D8 #D89051 #98D851
monochromatic
#20238F #2B30C1 #5155D8 #8386E3 #B5B7EE

Accessibility & contrast

On white

5.77
#5155D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#5155D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155D8
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155D8#FFFFFF#000000##FFFFFF
##5155D81.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDC
Deuteranopia (green-blind)
#0060D5
Tritanopia (blue-blind)
#00758E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5155d8;
/* rgb */ color: rgb(81, 85, 216);
/* oklch */ color: oklch(52.5% 0.196 275.9);
Tailwind
colors: {
  custom: {
    50: '#9085e5',
    500: '#5155d8',
    950: '#000000',
  },
}
SCSS
$custom: #5155d8;
$custom-light: #9085e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5155d8",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 216
  },
  "hsl": {
    "h": 238.222,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.52454,
    "c": 0.19637,
    "h": 275.9
  },
  "luminance": 0.13204
}

Semantic roles & 50–950 ramp

primary
#5155D8
secondary
#DDDCA8
accent
#E241E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5155D8

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

Preview Lab → · Contrast checker → · Palette generator →

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