#5141BF#5141BF

#5141BF is a mid, vivid blue. Relative luminance 0.093; OKLCH L 47.1% C 0.188 H 282.1°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5141BF
RGBrgb(81, 65, 191)
HSLhsl(248, 50%, 50%)
HSVhsv(248, 66%, 75%)
CMYKcmyk(57.6%, 66%, 0%, 25.1%)
CIE-LABlab(36.54, 41.84, -64.03)
CIE-LCHlch(36.54, 76.48, 303.16°)
OKLaboklab(47.07% 0.0396 -0.1842)
OKLCHoklch(47.07% 0.188 282.1)
XYZxyz(14.6847, 9.2906, 50.2996)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5141BF #AFBF41
analogous
#4170BF #5141BF #9041BF
triadic
#5141BF #BF5141 #41BF51
tetradic
#5141BF #BF4170 #AFBF41 #41BF90
square
#5141BF #BF4170 #AFBF41 #41BF90
split-complementary
#5141BF #BF9041 #70BF41
monochromatic
#2A2264 #3D3192 #5141BF #7B6FCE #A59DDE

Accessibility & contrast

On white

7.35
#5141BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5141BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5141BF
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5141BF#FFFFFF#000000##FFFFFF
##5141BF1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#0051BD
Tritanopia (blue-blind)
#12617A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5141bf;
/* rgb */ color: rgb(81, 65, 191);
/* oklch */ color: oklch(47.1% 0.188 282.1);
Tailwind
colors: {
  custom: {
    50: '#8d77d3',
    500: '#5141bf',
    950: '#000000',
  },
}
SCSS
$custom: #5141bf;
$custom-light: #8d77d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5141bf",
  "rgb": {
    "r": 81,
    "g": 65,
    "b": 191
  },
  "hsl": {
    "h": 247.619,
    "s": 49.606,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47065,
    "c": 0.1884,
    "h": 282.1
  },
  "luminance": 0.09292
}

Semantic roles & 50–950 ramp

primary
#5141BF
secondary
#C3CA92
accent
#D94FC8
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5141BF

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

Preview Lab → · Contrast checker → · Palette generator →

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