#5145C0#5145C0

#5145C0 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.8% C 0.185 H 281.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#5145C0
RGBrgb(81, 69, 192)
HSLhsl(246, 49%, 51%)
HSVhsv(246, 64%, 75%)
CMYKcmyk(57.8%, 64.1%, 0%, 24.7%)
CIE-LABlab(37.50, 39.80, -63.04)
CIE-LCHlch(37.50, 74.55, 302.26°)
OKLaboklab(47.79% 0.0359 -0.1813)
OKLCHoklch(47.79% 0.185 281.2)
XYZxyz(15.0329, 9.8103, 50.9604)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145C0 #B4C045
analogous
#4576C0 #5145C0 #8E45C0
triadic
#5145C0 #C05145 #45C051
tetradic
#5145C0 #C04576 #B4C045 #45C08E
square
#5145C0 #C04576 #B4C045 #45C08E
split-complementary
#5145C0 #C08E45 #76C045
monochromatic
#2A2368 #3C3395 #5145C0 #7C73CF #A7A0DF

Accessibility & contrast

On white

7.09
#5145C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5145C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145C0
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145C0#FFFFFF#000000##FFFFFF
##5145C01.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC4
Deuteranopia (green-blind)
#0054BE
Tritanopia (blue-blind)
#0E647C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5145c0;
/* rgb */ color: rgb(81, 69, 192);
/* oklch */ color: oklch(47.8% 0.185 281.2);
Tailwind
colors: {
  custom: {
    50: '#8d79d4',
    500: '#5145c0',
    950: '#000000',
  },
}
SCSS
$custom: #5145c0;
$custom-light: #8d79d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5145c0",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 192
  },
  "hsl": {
    "h": 245.854,
    "s": 49.398,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47788,
    "c": 0.18481,
    "h": 281.2
  },
  "luminance": 0.09811
}

Semantic roles & 50–950 ramp

primary
#5145C0
secondary
#C6CC95
accent
#D94FCB
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5145C0

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

Preview Lab → · Contrast checker → · Palette generator →

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