#5145D8#5145D8

#5145D8 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 49.9% C 0.215 H 278.8°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#5145D8
RGBrgb(81, 69, 216)
HSLhsl(245, 65%, 56%)
HSVhsv(245, 68%, 85%)
CMYKcmyk(62.5%, 68.1%, 0%, 15.3%)
CIE-LABlab(39.52, 47.37, -73.65)
CIE-LCHlch(39.52, 87.57, 302.75°)
OKLaboklab(49.87% 0.033 -0.2124)
OKLCHoklch(49.87% 0.215 278.8)
XYZxyz(17.9122, 10.9620, 66.1244)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145D8 #CCD845
analogous
#4582D8 #5145D8 #9A45D8
triadic
#5145D8 #D85145 #45D851
tetradic
#5145D8 #D84582 #CCD845 #45D89A
square
#5145D8 #D84582 #CCD845 #45D89A
split-complementary
#5145D8 #D89A45 #82D845
monochromatic
#251C86 #3327B9 #5145D8 #8078E3 #B0AAED

Accessibility & contrast

On white

6.58
#5145D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5145D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145D8
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145D8#FFFFFF#000000##FFFFFF
##5145D81.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DC
Deuteranopia (green-blind)
#0057D5
Tritanopia (blue-blind)
#006C89
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5145d8;
/* rgb */ color: rgb(81, 69, 216);
/* oklch */ color: oklch(49.9% 0.215 278.8);
Tailwind
colors: {
  custom: {
    50: '#917ae5',
    500: '#5145d8',
    950: '#000000',
  },
}
SCSS
$custom: #5145d8;
$custom-light: #917ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#5145d8",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 244.898,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.49869,
    "c": 0.21495,
    "h": 278.8
  },
  "luminance": 0.10963
}

Semantic roles & 50–950 ramp

primary
#5145D8
secondary
#D6DB9E
accent
#E840DB
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5145D8

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

Preview Lab → · Contrast checker → · Palette generator →

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