#5141DC#5141DC

#5141DC is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.7% C 0.224 H 279.0°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5141DC
RGBrgb(81, 65, 220)
HSLhsl(246, 69%, 56%)
HSVhsv(246, 70%, 86%)
CMYKcmyk(63.2%, 70.5%, 0%, 13.7%)
CIE-LABlab(39.06, 50.84, -76.69)
CIE-LCHlch(39.06, 92.01, 303.54°)
OKLaboklab(49.65% 0.0352 -0.2213)
OKLCHoklch(49.65% 0.224 279)
XYZxyz(18.1978, 10.6958, 68.8018)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5141DC #CCDC41
analogous
#417EDC #5141DC #9F41DC
triadic
#5141DC #DC5141 #41DC51
tetradic
#5141DC #DC417E #CCDC41 #41DC9F
square
#5141DC #DC417E #CCDC41 #41DC9F
split-complementary
#5141DC #DC9F41 #7EDC41
monochromatic
#251989 #3323BD #5141DC #8075E6 #B0A8EF

Accessibility & contrast

On white

6.69
#5141DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5141DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5141DC
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5141DC#FFFFFF#000000##FFFFFF
##5141DC1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E1
Deuteranopia (green-blind)
#0056D9
Tritanopia (blue-blind)
#006B8A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5141dc;
/* rgb */ color: rgb(81, 65, 220);
/* oklch */ color: oklch(49.7% 0.224 279.0);
Tailwind
colors: {
  custom: {
    50: '#9278e8',
    500: '#5141dc',
    950: '#000000',
  },
}
SCSS
$custom: #5141dc;
$custom-light: #9278e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5141dc",
  "rgb": {
    "r": 81,
    "g": 65,
    "b": 220
  },
  "hsl": {
    "h": 246.194,
    "s": 68.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.49653,
    "c": 0.22407,
    "h": 279
  },
  "luminance": 0.10697
}

Semantic roles & 50–950 ramp

primary
#5141DC
secondary
#D6DD9C
accent
#EC3CDA
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5141DC

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

Preview Lab → · Contrast checker → · Palette generator →

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