#5146BB#5146BB

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

Color values

HEX#5146BB
RGBrgb(81, 70, 187)
HSLhsl(246, 46%, 50%)
HSVhsv(246, 63%, 73%)
CMYKcmyk(56.7%, 62.6%, 0%, 26.7%)
CIE-LABlab(37.33, 37.61, -60.39)
CIE-LCHlch(37.33, 71.14, 301.91°)
OKLaboklab(47.54% 0.0354 -0.1735)
OKLCHoklch(47.54% 0.177 281.5)
XYZxyz(14.5504, 9.7166, 48.1128)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146BB #B0BB46
analogous
#4675BB #5146BB #8B46BB
triadic
#5146BB #BB5146 #46BB51
tetradic
#5146BB #BB4675 #B0BB46 #46BB8B
square
#5146BB #BB4675 #B0BB46 #46BB8B
split-complementary
#5146BB #BB8B46 #75BB46
monochromatic
#2A2462 #3D358F #5146BB #7B73CB #A5A0DC

Accessibility & contrast

On white

7.13
#5146BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5146BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5146BB
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146BB#FFFFFF#000000##FFFFFF
##5146BB1.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#0054B9
Tritanopia (blue-blind)
#19637A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5146bb;
/* rgb */ color: rgb(81, 70, 187);
/* oklch */ color: oklch(47.5% 0.177 281.5);
Tailwind
colors: {
  custom: {
    50: '#8c7ad0',
    500: '#5146bb',
    950: '#000000',
  },
}
SCSS
$custom: #5146bb;
$custom-light: #8c7ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#5146bb",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 187
  },
  "hsl": {
    "h": 245.641,
    "s": 46.245,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47539,
    "c": 0.17706,
    "h": 281.5
  },
  "luminance": 0.09718
}

Semantic roles & 50–950 ramp

primary
#5146BB
secondary
#C4C894
accent
#D652C9
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5146BB

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

Preview Lab → · Contrast checker → · Palette generator →

#5146BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva