#5141E8#5141E8

#5141E8 is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.8% C 0.238 H 278.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#5141E8
RGBrgb(81, 65, 232)
HSLhsl(246, 78%, 58%)
HSVhsv(246, 72%, 91%)
CMYKcmyk(65.1%, 72%, 0%, 9%)
CIE-LABlab(40.17, 54.51, -81.70)
CIE-LCHlch(40.17, 98.22, 303.71°)
OKLaboklab(50.78% 0.033 -0.2359)
OKLCHoklch(50.78% 0.238 278)
XYZxyz(19.8444, 11.3544, 77.4741)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5141E8 #D8E841
analogous
#4184E8 #5141E8 #A541E8
triadic
#5141E8 #E85141 #41E851
tetradic
#5141E8 #E84184 #D8E841 #41E8A5
square
#5141E8 #E84184 #D8E841 #41E8A5
split-complementary
#5141E8 #E8A541 #84E841
monochromatic
#20139C #2B19D2 #5141E8 #8378EF #B5AEF5

Accessibility & contrast

On white

6.42
#5141E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5141E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5141E8
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5141E8#FFFFFF#000000##FFFFFF
##5141E81.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065ED
Deuteranopia (green-blind)
#0058E5
Tritanopia (blue-blind)
#007091
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5141e8;
/* rgb */ color: rgb(81, 65, 232);
/* oklch */ color: oklch(50.8% 0.238 278.0);
Tailwind
colors: {
  custom: {
    50: '#9478f1',
    500: '#5141e8',
    950: '#000000',
  },
}
SCSS
$custom: #5141e8;
$custom-light: #9478f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5141e8",
  "rgb": {
    "r": 81,
    "g": 65,
    "b": 232
  },
  "hsl": {
    "h": 245.749,
    "s": 78.404,
    "l": 58.235
  },
  "oklch": {
    "l": 0.50777,
    "c": 0.23824,
    "h": 278
  },
  "luminance": 0.11356
}

Semantic roles & 50–950 ramp

primary
#5141E8
secondary
#DDE4A1
accent
#F533E2
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5141E8

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

Preview Lab → · Contrast checker → · Palette generator →

#5141E8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva