#5145CA#5145CA

#5145CA is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.6% C 0.198 H 280.2°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#5145CA
RGBrgb(81, 69, 202)
HSLhsl(245, 56%, 53%)
HSVhsv(245, 66%, 79%)
CMYKcmyk(59.9%, 65.8%, 0%, 20.8%)
CIE-LABlab(38.32, 42.96, -67.53)
CIE-LCHlch(38.32, 80.04, 302.46°)
OKLaboklab(48.64% 0.0349 -0.1945)
OKLCHoklch(48.64% 0.198 280.2)
XYZxyz(16.1788, 10.2687, 56.9952)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145CA #BECA45
analogous
#457BCA #5145CA #9445CA
triadic
#5145CA #CA5145 #45CA51
tetradic
#5145CA #CA457B #BECA45 #45CA94
square
#5145CA #CA457B #BECA45 #45CA94
split-complementary
#5145CA #CA9445 #7BCA45
monochromatic
#282174 #392FA3 #5145CA #7E75D8 #AAA4E5

Accessibility & contrast

On white

6.88
#5145CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5145CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145CA
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145CA#FFFFFF#000000##FFFFFF
##5145CA1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5145ca;
/* rgb */ color: rgb(81, 69, 202);
/* oklch */ color: oklch(48.6% 0.198 280.2);
Tailwind
colors: {
  custom: {
    50: '#8e7adb',
    500: '#5145ca',
    950: '#000000',
  },
}
SCSS
$custom: #5145ca;
$custom-light: #8e7adb;
$custom-dark: #000000;
JSON
{
  "hex": "#5145ca",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 245.414,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48638,
    "c": 0.19756,
    "h": 280.2
  },
  "luminance": 0.1027
}

Semantic roles & 50–950 ramp

primary
#5145CA
secondary
#CDD299
accent
#DF49D1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5145CA

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

Preview Lab → · Contrast checker → · Palette generator →

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