#5145C3#5145C3

#5145C3 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 48.0% C 0.189 H 280.9°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#5145C3
RGBrgb(81, 69, 195)
HSLhsl(246, 51%, 52%)
HSVhsv(246, 65%, 76%)
CMYKcmyk(58.5%, 64.6%, 0%, 23.5%)
CIE-LABlab(37.74, 40.75, -64.40)
CIE-LCHlch(37.74, 76.21, 302.32°)
OKLaboklab(48.04% 0.0356 -0.1853)
OKLCHoklch(48.04% 0.189 280.9)
XYZxyz(15.3687, 9.9447, 52.7288)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145C3 #B7C345
analogous
#4578C3 #5145C3 #9045C3
triadic
#5145C3 #C35145 #45C351
tetradic
#5145C3 #C34578 #B7C345 #45C390
square
#5145C3 #C34578 #B7C345 #45C390
split-complementary
#5145C3 #C39045 #78C345
monochromatic
#29236B #3B3199 #5145C3 #7C73D2 #A8A2E1

Accessibility & contrast

On white

7.03
#5145C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5145C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145C3
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145C3#FFFFFF#000000##FFFFFF
##5145C31.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC7
Deuteranopia (green-blind)
#0054C1
Tritanopia (blue-blind)
#04657E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5145c3;
/* rgb */ color: rgb(81, 69, 195);
/* oklch */ color: oklch(48.0% 0.189 280.9);
Tailwind
colors: {
  custom: {
    50: '#8d79d6',
    500: '#5145c3',
    950: '#000000',
  },
}
SCSS
$custom: #5145c3;
$custom-light: #8d79d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5145c3",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 195
  },
  "hsl": {
    "h": 245.714,
    "s": 51.22,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48041,
    "c": 0.18866,
    "h": 280.9
  },
  "luminance": 0.09946
}

Semantic roles & 50–950 ramp

primary
#5145C3
secondary
#C8CE96
accent
#DB4DCD
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5145C3

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

Preview Lab → · Contrast checker → · Palette generator →

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