#5145E9#5145E9

#5145E9 is a mid, highly saturated blue. Relative luminance 0.119; OKLCH L 51.4% C 0.235 H 277.4°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#5145E9
RGBrgb(81, 69, 233)
HSLhsl(244, 79%, 59%)
HSVhsv(244, 70%, 91%)
CMYKcmyk(65.2%, 70.4%, 0%, 8.6%)
CIE-LABlab(41.04, 52.66, -80.85)
CIE-LCHlch(41.04, 96.49, 303.08°)
OKLaboklab(51.42% 0.0304 -0.2335)
OKLCHoklch(51.42% 0.235 277.4)
XYZxyz(20.2247, 11.8870, 78.3036)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145E9 #DDE945
analogous
#458BE9 #5145E9 #A345E9
triadic
#5145E9 #E95145 #45E951
tetradic
#5145E9 #E9458B #DDE945 #45E9A3
square
#5145E9 #E9458B #DDE945 #45E9A3
split-complementary
#5145E9 #E9A345 #8BE945
monochromatic
#1D13A1 #2719D7 #5145E9 #847CEF #B7B2F6

Accessibility & contrast

On white

6.22
#5145E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#5145E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145E9
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145E9#FFFFFF#000000##FFFFFF
##5145E91.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EE
Deuteranopia (green-blind)
#005AE6
Tritanopia (blue-blind)
#007292
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5145e9;
/* rgb */ color: rgb(81, 69, 233);
/* oklch */ color: oklch(51.4% 0.235 277.4);
Tailwind
colors: {
  custom: {
    50: '#947bf1',
    500: '#5145e9',
    950: '#000000',
  },
}
SCSS
$custom: #5145e9;
$custom-light: #947bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#5145e9",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 233
  },
  "hsl": {
    "h": 244.39,
    "s": 78.846,
    "l": 59.216
  },
  "oklch": {
    "l": 0.51421,
    "c": 0.23543,
    "h": 277.4
  },
  "luminance": 0.11889
}

Semantic roles & 50–950 ramp

primary
#5145E9
secondary
#E0E5A5
accent
#F532E7
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5145E9

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

Preview Lab → · Contrast checker → · Palette generator →

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