#5145C4#5145C4

#5145C4 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 48.1% C 0.190 H 280.8°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#5145C4
RGBrgb(81, 69, 196)
HSLhsl(246, 52%, 52%)
HSVhsv(246, 65%, 77%)
CMYKcmyk(58.7%, 64.8%, 0%, 23.1%)
CIE-LABlab(37.82, 41.06, -64.85)
CIE-LCHlch(37.82, 76.76, 302.34°)
OKLaboklab(48.13% 0.0355 -0.1866)
OKLCHoklch(48.13% 0.19 280.8)
XYZxyz(15.4821, 9.9900, 53.3263)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145C4 #B8C445
analogous
#4579C4 #5145C4 #9045C4
triadic
#5145C4 #C45145 #45C451
tetradic
#5145C4 #C44579 #B8C445 #45C490
square
#5145C4 #C44579 #B8C445 #45C490
split-complementary
#5145C4 #C49045 #79C445
monochromatic
#29226C #3B319B #5145C4 #7C73D3 #A8A2E1

Accessibility & contrast

On white

7.00
#5145C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5145C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145C4
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145C4#FFFFFF#000000##FFFFFF
##5145C41.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC8
Deuteranopia (green-blind)
#0054C2
Tritanopia (blue-blind)
#00657E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5145c4;
/* rgb */ color: rgb(81, 69, 196);
/* oklch */ color: oklch(48.1% 0.190 280.8);
Tailwind
colors: {
  custom: {
    50: '#8d7ad7',
    500: '#5145c4',
    950: '#000000',
  },
}
SCSS
$custom: #5145c4;
$custom-light: #8d7ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#5145c4",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 196
  },
  "hsl": {
    "h": 245.669,
    "s": 51.837,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48125,
    "c": 0.18995,
    "h": 280.8
  },
  "luminance": 0.09991
}

Semantic roles & 50–950 ramp

primary
#5145C4
secondary
#C9CE97
accent
#DB4DCE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5145C4

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

Preview Lab → · Contrast checker → · Palette generator →

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