#5145C9#5145C9

#5145C9 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.6% C 0.196 H 280.3°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5145C9
RGBrgb(81, 69, 201)
HSLhsl(245, 55%, 53%)
HSVhsv(245, 66%, 79%)
CMYKcmyk(59.7%, 65.7%, 0%, 21.2%)
CIE-LABlab(38.24, 42.65, -67.08)
CIE-LCHlch(38.24, 79.49, 302.44°)
OKLaboklab(48.55% 0.035 -0.1932)
OKLCHoklch(48.55% 0.196 280.3)
XYZxyz(16.0607, 10.2215, 56.3736)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145C9 #BDC945
analogous
#457BC9 #5145C9 #9345C9
triadic
#5145C9 #C95145 #45C951
tetradic
#5145C9 #C9457B #BDC945 #45C993
square
#5145C9 #C9457B #BDC945 #45C993
split-complementary
#5145C9 #C99345 #7BC945
monochromatic
#292172 #392FA2 #5145C9 #7D74D7 #AAA4E5

Accessibility & contrast

On white

6.90
#5145C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5145C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145C9
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145C9#FFFFFF#000000##FFFFFF
##5145C91.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCD
Deuteranopia (green-blind)
#0055C6
Tritanopia (blue-blind)
#006781
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5145c9;
/* rgb */ color: rgb(81, 69, 201);
/* oklch */ color: oklch(48.6% 0.196 280.3);
Tailwind
colors: {
  custom: {
    50: '#8e7ada',
    500: '#5145c9',
    950: '#000000',
  },
}
SCSS
$custom: #5145c9;
$custom-light: #8e7ada;
$custom-dark: #000000;
JSON
{
  "hex": "#5145c9",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 201
  },
  "hsl": {
    "h": 245.455,
    "s": 55,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48552,
    "c": 0.1963,
    "h": 280.3
  },
  "luminance": 0.10223
}

Semantic roles & 50–950 ramp

primary
#5145C9
secondary
#CCD198
accent
#DE49D1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5145C9

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

Preview Lab → · Contrast checker → · Palette generator →

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