#5145DB#5145DB

#5145DB is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.1% C 0.219 H 278.6°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5145DB
RGBrgb(81, 69, 219)
HSLhsl(245, 68%, 56%)
HSVhsv(245, 68%, 86%)
CMYKcmyk(63%, 68.5%, 0%, 14.1%)
CIE-LABlab(39.78, 48.31, -74.94)
CIE-LCHlch(39.78, 89.16, 302.81°)
OKLaboklab(50.14% 0.0326 -0.2162)
OKLCHoklch(50.14% 0.219 278.6)
XYZxyz(18.3035, 11.1186, 68.1857)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145DB #CFDB45
analogous
#4584DB #5145DB #9C45DB
triadic
#5145DB #DB5145 #45DB51
tetradic
#5145DB #DB4584 #CFDB45 #45DB9C
square
#5145DB #DB4584 #CFDB45 #45DB9C
split-complementary
#5145DB #DB9C45 #84DB45
monochromatic
#241B8B #3125BE #5145DB #8178E5 #B1ACEF

Accessibility & contrast

On white

6.51
#5145DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5145DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145DB
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145DB#FFFFFF#000000##FFFFFF
##5145DB1.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E0
Deuteranopia (green-blind)
#0058D8
Tritanopia (blue-blind)
#006D8B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5145db;
/* rgb */ color: rgb(81, 69, 219);
/* oklch */ color: oklch(50.1% 0.219 278.6);
Tailwind
colors: {
  custom: {
    50: '#917ae7',
    500: '#5145db',
    950: '#000000',
  },
}
SCSS
$custom: #5145db;
$custom-light: #917ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#5145db",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 244.8,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.50139,
    "c": 0.21862,
    "h": 278.6
  },
  "luminance": 0.1112
}

Semantic roles & 50–950 ramp

primary
#5145DB
secondary
#D8DD9F
accent
#EA3DDD
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5145DB

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

Preview Lab → · Contrast checker → · Palette generator →

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