#5146BE#5146BE

#5146BE is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.8% C 0.181 H 281.2°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#5146BE
RGBrgb(81, 70, 190)
HSLhsl(246, 48%, 51%)
HSVhsv(246, 63%, 75%)
CMYKcmyk(57.4%, 63.2%, 0%, 25.5%)
CIE-LABlab(37.57, 38.56, -61.76)
CIE-LCHlch(37.57, 72.81, 301.98°)
OKLaboklab(47.79% 0.0352 -0.1775)
OKLCHoklch(47.79% 0.181 281.2)
XYZxyz(14.8749, 9.8464, 49.8219)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146BE #B3BE46
analogous
#4677BE #5146BE #8D46BE
triadic
#5146BE #BE5146 #46BE51
tetradic
#5146BE #BE4677 #B3BE46 #46BE8D
square
#5146BE #BE4677 #B3BE46 #46BE8D
split-complementary
#5146BE #BE8D46 #77BE46
monochromatic
#2A2466 #3C3493 #5146BE #7C73CE #A6A1DE

Accessibility & contrast

On white

7.07
#5146BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5146BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5146BE
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146BE#FFFFFF#000000##FFFFFF
##5146BE1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC2
Deuteranopia (green-blind)
#0054BC
Tritanopia (blue-blind)
#13647B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5146be;
/* rgb */ color: rgb(81, 70, 190);
/* oklch */ color: oklch(47.8% 0.181 281.2);
Tailwind
colors: {
  custom: {
    50: '#8c7ad2',
    500: '#5146be',
    950: '#000000',
  },
}
SCSS
$custom: #5146be;
$custom-light: #8c7ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#5146be",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 190
  },
  "hsl": {
    "h": 245.5,
    "s": 48,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47786,
    "c": 0.18098,
    "h": 281.2
  },
  "luminance": 0.09847
}

Semantic roles & 50–950 ramp

primary
#5146BE
secondary
#C6CA95
accent
#D850CB
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5146BE

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

Preview Lab → · Contrast checker → · Palette generator →

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