#5155FF#5155FF

#5155FF is a mid, highly saturated blue. Relative luminance 0.155; OKLCH L 55.8% C 0.245 H 274.1°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5155FF
RGBrgb(81, 85, 255)
HSLhsl(239, 100%, 66%)
HSVhsv(239, 68%, 100%)
CMYKcmyk(68.2%, 66.7%, 0%, 0%)
CIE-LABlab(46.26, 50.64, -84.61)
CIE-LCHlch(46.26, 98.60, 300.90°)
OKLaboklab(55.77% 0.0173 -0.2445)
OKLCHoklch(55.77% 0.245 274.1)
XYZxyz(24.6858, 15.4640, 96.2723)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155FF #FFFB51
analogous
#51ACFF #5155FF #A451FF
triadic
#5155FF #FF5155 #55FF51
tetradic
#5155FF #FF51AC #FFFB51 #51FFA4
square
#5155FF #FF51AC #FFFB51 #51FFA4
split-complementary
#5155FF #FFA451 #ACFF51
monochromatic
#0005D6 #1419FF #5155FF #8E91FF #CBCDFF

Accessibility & contrast

On white

5.13
#5155FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#5155FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155FF
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155FF#FFFFFF#000000##FFFFFF
##5155FF1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076FF
Deuteranopia (green-blind)
#0066FC
Tritanopia (blue-blind)
#0083A3
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5155ff;
/* rgb */ color: rgb(81, 85, 255);
/* oklch */ color: oklch(55.8% 0.245 274.1);
Tailwind
colors: {
  custom: {
    50: '#9786ff',
    500: '#5155ff',
    950: '#000000',
  },
}
SCSS
$custom: #5155ff;
$custom-light: #9786ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5155ff",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 255
  },
  "hsl": {
    "h": 238.621,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.55773,
    "c": 0.24508,
    "h": 274.1
  },
  "luminance": 0.15466
}

Semantic roles & 50–950 ramp

primary
#5155FF
secondary
#F3F1B9
accent
#E000E6
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B18
muted
#7F7C86

Preview Lab

Preview with #5155FF

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

Preview Lab → · Contrast checker → · Palette generator →

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