#5145AC#5145AC

#5145AC is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.2% C 0.158 H 283.6°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5145AC
RGBrgb(81, 69, 172)
HSLhsl(247, 43%, 47%)
HSVhsv(247, 60%, 67%)
CMYKcmyk(52.9%, 59.9%, 0%, 32.5%)
CIE-LABlab(35.95, 33.46, -53.75)
CIE-LCHlch(35.95, 63.31, 301.90°)
OKLaboklab(46.17% 0.0372 -0.154)
OKLCHoklch(46.17% 0.158 283.6)
XYZxyz(12.9656, 8.9834, 40.0725)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145AC #A0AC45
analogous
#456DAC #5145AC #8445AC
triadic
#5145AC #AC5145 #45AC51
tetradic
#5145AC #AC456D #A0AC45 #45AC84
square
#5145AC #AC456D #A0AC45 #45AC84
split-complementary
#5145AC #AC8445 #6DAC45
monochromatic
#282255 #3C3380 #5145AC #756BC4 #9E96D5

Accessibility & contrast

On white

7.51
#5145AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5145AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145AC
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145AC#FFFFFF#000000##FFFFFF
##5145AC1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AF
Deuteranopia (green-blind)
#0051AA
Tritanopia (blue-blind)
#2C5D72
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5145ac;
/* rgb */ color: rgb(81, 69, 172);
/* oklch */ color: oklch(46.2% 0.158 283.6);
Tailwind
colors: {
  custom: {
    50: '#8a79c5',
    500: '#5145ac',
    950: '#000000',
  },
}
SCSS
$custom: #5145ac;
$custom-light: #8a79c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5145ac",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 172
  },
  "hsl": {
    "h": 246.99,
    "s": 42.739,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46171,
    "c": 0.15841,
    "h": 283.6
  },
  "luminance": 0.08984
}

Semantic roles & 50–950 ramp

primary
#5145AC
secondary
#BBC18C
accent
#D355C4
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #5145AC

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

Preview Lab → · Contrast checker → · Palette generator →

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