#5145DA#5145DA

#5145DA is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.0% C 0.217 H 278.7°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#5145DA
RGBrgb(81, 69, 218)
HSLhsl(245, 67%, 56%)
HSVhsv(245, 68%, 85%)
CMYKcmyk(62.8%, 68.3%, 0%, 14.5%)
CIE-LABlab(39.69, 48.00, -74.51)
CIE-LCHlch(39.69, 88.63, 302.79°)
OKLaboklab(50.05% 0.0328 -0.2149)
OKLCHoklch(50.05% 0.217 278.7)
XYZxyz(18.1723, 11.0661, 67.4944)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145DA #CEDA45
analogous
#4584DA #5145DA #9C45DA
triadic
#5145DA #DA5145 #45DA51
tetradic
#5145DA #DA4584 #CEDA45 #45DA9C
square
#5145DA #DA4584 #CEDA45 #45DA9C
split-complementary
#5145DA #DA9C45 #84DA45
monochromatic
#241B89 #3225BC #5145DA #8178E4 #B1ABEE

Accessibility & contrast

On white

6.53
#5145DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5145DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145DA
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145DA#FFFFFF#000000##FFFFFF
##5145DA1.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DF
Deuteranopia (green-blind)
#0057D7
Tritanopia (blue-blind)
#006D8A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5145da;
/* rgb */ color: rgb(81, 69, 218);
/* oklch */ color: oklch(50.0% 0.217 278.7);
Tailwind
colors: {
  custom: {
    50: '#917ae7',
    500: '#5145da',
    950: '#000000',
  },
}
SCSS
$custom: #5145da;
$custom-light: #917ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#5145da",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 218
  },
  "hsl": {
    "h": 244.832,
    "s": 66.816,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50049,
    "c": 0.2174,
    "h": 278.7
  },
  "luminance": 0.11068
}

Semantic roles & 50–950 ramp

primary
#5145DA
secondary
#D7DC9F
accent
#EA3EDC
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5145DA

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

Preview Lab → · Contrast checker → · Palette generator →

#5145DA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva