#5145BA#5145BA

#5145BA is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.3% C 0.177 H 281.9°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5145BA
RGBrgb(81, 69, 186)
HSLhsl(246, 46%, 50%)
HSVhsv(246, 63%, 73%)
CMYKcmyk(56.5%, 62.9%, 0%, 27.1%)
CIE-LABlab(37.02, 37.89, -60.30)
CIE-LCHlch(37.02, 71.22, 302.15°)
OKLaboklab(47.29% 0.0364 -0.1732)
OKLCHoklch(47.29% 0.177 281.9)
XYZxyz(14.3816, 9.5498, 47.5303)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145BA #AEBA45
analogous
#4573BA #5145BA #8C45BA
triadic
#5145BA #BA5145 #45BA51
tetradic
#5145BA #BA4573 #AEBA45 #45BA8C
square
#5145BA #BA4573 #AEBA45 #45BA8C
split-complementary
#5145BA #BA8C45 #73BA45
monochromatic
#2A2461 #3E348D #5145BA #7B72CB #A59EDB

Accessibility & contrast

On white

7.22
#5145BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5145BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145BA
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145BA#FFFFFF#000000##FFFFFF
##5145BA1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#1B6279
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5145ba;
/* rgb */ color: rgb(81, 69, 186);
/* oklch */ color: oklch(47.3% 0.177 281.9);
Tailwind
colors: {
  custom: {
    50: '#8c79d0',
    500: '#5145ba',
    950: '#000000',
  },
}
SCSS
$custom: #5145ba;
$custom-light: #8c79d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5145ba",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 246.154,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.47291,
    "c": 0.17702,
    "h": 281.9
  },
  "luminance": 0.09551
}

Semantic roles & 50–950 ramp

primary
#5145BA
secondary
#C2C893
accent
#D652C8
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5145BA

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

Preview Lab → · Contrast checker → · Palette generator →

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