#5141EA#5141EA

#5141EA is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 51.0% C 0.241 H 277.8°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#5141EA
RGBrgb(81, 65, 234)
HSLhsl(246, 80%, 59%)
HSVhsv(246, 72%, 92%)
CMYKcmyk(65.4%, 72.2%, 0%, 8.2%)
CIE-LABlab(40.36, 55.11, -82.53)
CIE-LCHlch(40.36, 99.24, 303.73°)
OKLaboklab(50.97% 0.0326 -0.2383)
OKLCHoklch(50.97% 0.241 277.8)
XYZxyz(20.1301, 11.4687, 78.9788)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5141EA #DAEA41
analogous
#4185EA #5141EA #A541EA
triadic
#5141EA #EA5141 #41EA51
tetradic
#5141EA #EA4185 #DAEA41 #41EAA5
square
#5141EA #EA4185 #DAEA41 #41EAA5
split-complementary
#5141EA #EAA541 #85EA41
monochromatic
#1F129F #2A18D6 #5141EA #8378F0 #B6AFF6

Accessibility & contrast

On white

6.38
#5141EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5141EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5141EA
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5141EA#FFFFFF#000000##FFFFFF
##5141EA1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066EF
Deuteranopia (green-blind)
#0058E7
Tritanopia (blue-blind)
#007192
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5141ea;
/* rgb */ color: rgb(81, 65, 234);
/* oklch */ color: oklch(51.0% 0.241 277.8);
Tailwind
colors: {
  custom: {
    50: '#9478f2',
    500: '#5141ea',
    950: '#000000',
  },
}
SCSS
$custom: #5141ea;
$custom-light: #9478f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5141ea",
  "rgb": {
    "r": 81,
    "g": 65,
    "b": 234
  },
  "hsl": {
    "h": 245.68,
    "s": 80.095,
    "l": 58.627
  },
  "oklch": {
    "l": 0.50967,
    "c": 0.24057,
    "h": 277.8
  },
  "luminance": 0.1147
}

Semantic roles & 50–950 ramp

primary
#5141EA
secondary
#DEE5A2
accent
#F731E4
background
#FAF7FF
surface
#F3EDFE
border
#CDC8D6
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5141EA

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

Preview Lab → · Contrast checker → · Palette generator →

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