#5145C2#5145C2

#5145C2 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 48.0% C 0.187 H 281.0°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#5145C2
RGBrgb(81, 69, 194)
HSLhsl(246, 51%, 52%)
HSVhsv(246, 64%, 76%)
CMYKcmyk(58.2%, 64.4%, 0%, 23.9%)
CIE-LABlab(37.66, 40.43, -63.95)
CIE-LCHlch(37.66, 75.66, 302.30°)
OKLaboklab(47.96% 0.0357 -0.1839)
OKLCHoklch(47.96% 0.187 281)
XYZxyz(15.2560, 9.8996, 52.1354)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145C2 #B6C245
analogous
#4578C2 #5145C2 #9045C2
triadic
#5145C2 #C25145 #45C251
tetradic
#5145C2 #C24578 #B6C245 #45C290
square
#5145C2 #C24578 #B6C245 #45C290
split-complementary
#5145C2 #C29045 #78C245
monochromatic
#2A236A #3C3298 #5145C2 #7C73D1 #A7A1E0

Accessibility & contrast

On white

7.05
#5145C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5145C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145C2
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145C2#FFFFFF#000000##FFFFFF
##5145C21.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#08647D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5145c2;
/* rgb */ color: rgb(81, 69, 194);
/* oklch */ color: oklch(48.0% 0.187 281.0);
Tailwind
colors: {
  custom: {
    50: '#8d79d5',
    500: '#5145c2',
    950: '#000000',
  },
}
SCSS
$custom: #5145c2;
$custom-light: #8d79d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5145c2",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 245.76,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47956,
    "c": 0.18739,
    "h": 281
  },
  "luminance": 0.09901
}

Semantic roles & 50–950 ramp

primary
#5145C2
secondary
#C8CD96
accent
#DA4ECD
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5145C2

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

Preview Lab → · Contrast checker → · Palette generator →

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