#5140DB#5140DB

#5140DB is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.4% C 0.224 H 279.3°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#5140DB
RGBrgb(81, 64, 219)
HSLhsl(247, 68%, 55%)
HSVhsv(247, 71%, 86%)
CMYKcmyk(63%, 70.8%, 0%, 14.1%)
CIE-LABlab(38.78, 51.08, -76.59)
CIE-LCHlch(38.78, 92.06, 303.70°)
OKLaboklab(49.42% 0.0361 -0.221)
OKLCHoklch(49.42% 0.224 279.3)
XYZxyz(18.0088, 10.5292, 68.0874)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140DB #CADB40
analogous
#407CDB #5140DB #9F40DB
triadic
#5140DB #DB5140 #40DB51
tetradic
#5140DB #DB407C #CADB40 #40DB9F
square
#5140DB #DB407C #CADB40 #40DB9F
split-complementary
#5140DB #DB9F40 #7CDB40
monochromatic
#251987 #3423BB #5140DB #8073E5 #AFA7EE

Accessibility & contrast

On white

6.76
#5140DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5140DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5140DB
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140DB#FFFFFF#000000##FFFFFF
##5140DB1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E0
Deuteranopia (green-blind)
#0055D8
Tritanopia (blue-blind)
#006B89
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5140db;
/* rgb */ color: rgb(81, 64, 219);
/* oklch */ color: oklch(49.4% 0.224 279.3);
Tailwind
colors: {
  custom: {
    50: '#9277e7',
    500: '#5140db',
    950: '#000000',
  },
}
SCSS
$custom: #5140db;
$custom-light: #9277e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5140db",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 246.581,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49421,
    "c": 0.22391,
    "h": 279.3
  },
  "luminance": 0.10531
}

Semantic roles & 50–950 ramp

primary
#5140DB
secondary
#D5DC9B
accent
#EB3DD8
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5140DB

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

Preview Lab → · Contrast checker → · Palette generator →

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