#5141DB#5141DB

#5141DB is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.6% C 0.223 H 279.1°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5141DB
RGBrgb(81, 65, 219)
HSLhsl(246, 68%, 56%)
HSVhsv(246, 70%, 86%)
CMYKcmyk(63%, 70.3%, 0%, 14.1%)
CIE-LABlab(38.97, 50.53, -76.26)
CIE-LCHlch(38.97, 91.48, 303.53°)
OKLaboklab(49.56% 0.0354 -0.22)
OKLCHoklch(49.56% 0.223 279.1)
XYZxyz(18.0657, 10.6430, 68.1064)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5141DB #CBDB41
analogous
#417EDB #5141DB #9E41DB
triadic
#5141DB #DB5141 #41DB51
tetradic
#5141DB #DB417E #CBDB41 #41DB9E
square
#5141DB #DB417E #CBDB41 #41DB9E
split-complementary
#5141DB #DB9E41 #7EDB41
monochromatic
#251A88 #3323BB #5141DB #8074E5 #AFA8EE

Accessibility & contrast

On white

6.71
#5141DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5141DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5141DB
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5141DB#FFFFFF#000000##FFFFFF
##5141DB1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5141db;
/* rgb */ color: rgb(81, 65, 219);
/* oklch */ color: oklch(49.6% 0.223 279.1);
Tailwind
colors: {
  custom: {
    50: '#9278e7',
    500: '#5141db',
    950: '#000000',
  },
}
SCSS
$custom: #5141db;
$custom-light: #9278e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5141db",
  "rgb": {
    "r": 81,
    "g": 65,
    "b": 219
  },
  "hsl": {
    "h": 246.234,
    "s": 68.142,
    "l": 55.686
  },
  "oklch": {
    "l": 0.49561,
    "c": 0.22287,
    "h": 279.1
  },
  "luminance": 0.10644
}

Semantic roles & 50–950 ramp

primary
#5141DB
secondary
#D5DC9C
accent
#EB3DD9
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5141DB

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

Preview Lab → · Contrast checker → · Palette generator →

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