#5155E0#5155E0

#5155E0 is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.1% C 0.207 H 275.5°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#5155E0
RGBrgb(81, 85, 224)
HSLhsl(238, 70%, 60%)
HSVhsv(238, 64%, 88%)
CMYKcmyk(63.8%, 62.1%, 0%, 12.2%)
CIE-LABlab(43.69, 40.56, -71.39)
CIE-LCHlch(43.69, 82.10, 299.60°)
OKLaboklab(53.11% 0.0199 -0.2057)
OKLCHoklch(53.11% 0.207 275.5)
XYZxyz(20.0920, 13.6265, 72.0779)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155E0 #E0DC51
analogous
#519CE0 #5155E0 #9551E0
triadic
#5155E0 #E05155 #55E051
tetradic
#5155E0 #E0519C #E0DC51 #51E095
square
#5155E0 #E0519C #E0DC51 #51E095
split-complementary
#5155E0 #E09551 #9CE051
monochromatic
#1C1F9B #252ACF #5155E0 #8588E9 #B9BBF3

Accessibility & contrast

On white

5.64
#5155E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#5155E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155E0
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155E0#FFFFFF#000000##FFFFFF
##5155E01.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE4
Deuteranopia (green-blind)
#0061DD
Tritanopia (blue-blind)
#007893
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5155e0;
/* rgb */ color: rgb(81, 85, 224);
/* oklch */ color: oklch(53.1% 0.207 275.5);
Tailwind
colors: {
  custom: {
    50: '#9185eb',
    500: '#5155e0',
    950: '#000000',
  },
}
SCSS
$custom: #5155e0;
$custom-light: #9185eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5155e0",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 224
  },
  "hsl": {
    "h": 238.322,
    "s": 69.756,
    "l": 59.804
  },
  "oklch": {
    "l": 0.53109,
    "c": 0.20668,
    "h": 275.5
  },
  "luminance": 0.13628
}

Semantic roles & 50–950 ramp

primary
#5155E0
secondary
#E2E0AB
accent
#E83BED
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5155E0

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

Preview Lab → · Contrast checker → · Palette generator →

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