#5145CC#5145CC

#5145CC is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 48.8% C 0.200 H 280.0°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#5145CC
RGBrgb(81, 69, 204)
HSLhsl(245, 57%, 54%)
HSVhsv(245, 66%, 80%)
CMYKcmyk(60.3%, 66.2%, 0%, 20%)
CIE-LABlab(38.49, 43.59, -68.41)
CIE-LCHlch(38.49, 81.12, 302.51°)
OKLaboklab(48.81% 0.0346 -0.1971)
OKLCHoklch(48.81% 0.2 280)
XYZxyz(16.4171, 10.3640, 58.2504)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145CC #C0CC45
analogous
#457CCC #5145CC #9445CC
triadic
#5145CC #CC5145 #45CC51
tetradic
#5145CC #CC457C #C0CC45 #45CC94
square
#5145CC #CC457C #C0CC45 #45CC94
split-complementary
#5145CC #CC9445 #7CCC45
monochromatic
#282076 #382EA6 #5145CC #7E75D9 #ABA5E6

Accessibility & contrast

On white

6.83
#5145CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5145CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145CC
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145CC#FFFFFF#000000##FFFFFF
##5145CC1.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#0055C9
Tritanopia (blue-blind)
#006882
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5145cc;
/* rgb */ color: rgb(81, 69, 204);
/* oklch */ color: oklch(48.8% 0.200 280.0);
Tailwind
colors: {
  custom: {
    50: '#8f7add',
    500: '#5145cc',
    950: '#000000',
  },
}
SCSS
$custom: #5145cc;
$custom-light: #8f7add;
$custom-dark: #000000;
JSON
{
  "hex": "#5145cc",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 245.333,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48811,
    "c": 0.20008,
    "h": 280
  },
  "luminance": 0.10365
}

Semantic roles & 50–950 ramp

primary
#5145CC
secondary
#CED399
accent
#E048D3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5145CC

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

Preview Lab → · Contrast checker → · Palette generator →

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