#5145C8#5145C8

#5145C8 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.5% C 0.195 H 280.4°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#5145C8
RGBrgb(81, 69, 200)
HSLhsl(245, 54%, 53%)
HSVhsv(245, 66%, 78%)
CMYKcmyk(59.5%, 65.5%, 0%, 21.6%)
CIE-LABlab(38.15, 42.33, -66.64)
CIE-LCHlch(38.15, 78.95, 302.42°)
OKLaboklab(48.47% 0.0351 -0.1918)
OKLCHoklch(48.47% 0.195 280.4)
XYZxyz(15.9435, 10.1746, 55.7561)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145C8 #BCC845
analogous
#457BC8 #5145C8 #9245C8
triadic
#5145C8 #C85145 #45C851
tetradic
#5145C8 #C8457B #BCC845 #45C892
square
#5145C8 #C8457B #BCC845 #45C892
split-complementary
#5145C8 #C89245 #7BC845
monochromatic
#292171 #3A2FA0 #5145C8 #7D74D6 #A9A3E4

Accessibility & contrast

On white

6.92
#5145C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5145C8
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145C8#FFFFFF#000000##FFFFFF
##5145C81.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#0055C5
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5145c8;
/* rgb */ color: rgb(81, 69, 200);
/* oklch */ color: oklch(48.5% 0.195 280.4);
Tailwind
colors: {
  custom: {
    50: '#8e7ada',
    500: '#5145c8',
    950: '#000000',
  },
}
SCSS
$custom: #5145c8;
$custom-light: #8e7ada;
$custom-dark: #000000;
JSON
{
  "hex": "#5145c8",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 245.496,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48466,
    "c": 0.19503,
    "h": 280.4
  },
  "luminance": 0.10176
}

Semantic roles & 50–950 ramp

primary
#5145C8
secondary
#CCD198
accent
#DE4AD0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #5145C8

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

Preview Lab → · Contrast checker → · Palette generator →

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