#5141DF#5141DF

#5141DF is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 49.9% C 0.228 H 278.8°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#5141DF
RGBrgb(81, 65, 223)
HSLhsl(246, 71%, 56%)
HSVhsv(246, 71%, 87%)
CMYKcmyk(63.7%, 70.9%, 0%, 12.5%)
CIE-LABlab(39.34, 51.76, -77.95)
CIE-LCHlch(39.34, 93.57, 303.58°)
OKLaboklab(49.93% 0.0347 -0.225)
OKLCHoklch(49.93% 0.228 278.8)
XYZxyz(18.5986, 10.8561, 70.9131)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5141DF #CFDF41
analogous
#4180DF #5141DF #A041DF
triadic
#5141DF #DF5141 #41DF51
tetradic
#5141DF #DF4180 #CFDF41 #41DFA0
square
#5141DF #DF4180 #CFDF41 #41DFA0
split-complementary
#5141DF #DFA041 #80DF41
monochromatic
#24188E #3121C2 #5141DF #8175E8 #B1AAF1

Accessibility & contrast

On white

6.62
#5141DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5141DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5141DF
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5141DF#FFFFFF#000000##FFFFFF
##5141DF1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E4
Deuteranopia (green-blind)
#0056DC
Tritanopia (blue-blind)
#006D8C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5141df;
/* rgb */ color: rgb(81, 65, 223);
/* oklch */ color: oklch(49.9% 0.228 278.8);
Tailwind
colors: {
  custom: {
    50: '#9278ea',
    500: '#5141df',
    950: '#000000',
  },
}
SCSS
$custom: #5141df;
$custom-light: #9278ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5141df",
  "rgb": {
    "r": 81,
    "g": 65,
    "b": 223
  },
  "hsl": {
    "h": 246.076,
    "s": 71.171,
    "l": 56.471
  },
  "oklch": {
    "l": 0.49932,
    "c": 0.22764,
    "h": 278.8
  },
  "luminance": 0.10858
}

Semantic roles & 50–950 ramp

primary
#5141DF
secondary
#D8DE9D
accent
#EE3ADC
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5141DF

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

Preview Lab → · Contrast checker → · Palette generator →

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