#5145BD#5145BD

#5145BD is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.5% C 0.181 H 281.5°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#5145BD
RGBrgb(81, 69, 189)
HSLhsl(246, 48%, 51%)
HSVhsv(246, 63%, 74%)
CMYKcmyk(57.1%, 63.5%, 0%, 25.9%)
CIE-LABlab(37.26, 38.84, -61.67)
CIE-LCHlch(37.26, 72.89, 302.20°)
OKLaboklab(47.54% 0.0362 -0.1773)
OKLCHoklch(47.54% 0.181 281.5)
XYZxyz(14.7039, 9.6787, 49.2276)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145BD #B1BD45
analogous
#4575BD #5145BD #8D45BD
triadic
#5145BD #BD5145 #45BD51
tetradic
#5145BD #BD4575 #B1BD45 #45BD8D
square
#5145BD #BD4575 #B1BD45 #45BD8D
split-complementary
#5145BD #BD8D45 #75BD45
monochromatic
#2A2464 #3D3491 #5145BD #7B72CD #A69FDD

Accessibility & contrast

On white

7.15
#5145BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5145BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145BD
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145BD#FFFFFF#000000##FFFFFF
##5145BD1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC1
Deuteranopia (green-blind)
#0053BB
Tritanopia (blue-blind)
#16637A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5145bd;
/* rgb */ color: rgb(81, 69, 189);
/* oklch */ color: oklch(47.5% 0.181 281.5);
Tailwind
colors: {
  custom: {
    50: '#8c79d2',
    500: '#5145bd',
    950: '#000000',
  },
}
SCSS
$custom: #5145bd;
$custom-light: #8c79d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5145bd",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 189
  },
  "hsl": {
    "h": 246,
    "s": 47.619,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47538,
    "c": 0.18093,
    "h": 281.5
  },
  "luminance": 0.0968
}

Semantic roles & 50–950 ramp

primary
#5145BD
secondary
#C4CA94
accent
#D751CA
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5145BD

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

Preview Lab → · Contrast checker → · Palette generator →

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