#5145E0#5145E0

#5145E0 is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.6% C 0.225 H 278.1°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#5145E0
RGBrgb(81, 69, 224)
HSLhsl(245, 71%, 57%)
HSVhsv(245, 69%, 88%)
CMYKcmyk(63.8%, 69.2%, 0%, 12.2%)
CIE-LABlab(40.22, 49.87, -77.07)
CIE-LCHlch(40.22, 91.80, 302.91°)
OKLaboklab(50.59% 0.0318 -0.2224)
OKLCHoklch(50.59% 0.225 278.1)
XYZxyz(18.9717, 11.3858, 71.7045)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145E0 #D4E045
analogous
#4587E0 #5145E0 #9E45E0
triadic
#5145E0 #E05145 #45E051
tetradic
#5145E0 #E04587 #D4E045 #45E09E
square
#5145E0 #E04587 #D4E045 #45E09E
split-complementary
#5145E0 #E09E45 #87E045
monochromatic
#221892 #2E21C7 #5145E0 #8279E9 #B3AEF1

Accessibility & contrast

On white

6.41
#5145E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5145E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145E0
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145E0#FFFFFF#000000##FFFFFF
##5145E01.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E5
Deuteranopia (green-blind)
#0058DD
Tritanopia (blue-blind)
#006F8D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5145e0;
/* rgb */ color: rgb(81, 69, 224);
/* oklch */ color: oklch(50.6% 0.225 278.1);
Tailwind
colors: {
  custom: {
    50: '#927aeb',
    500: '#5145e0',
    950: '#000000',
  },
}
SCSS
$custom: #5145e0;
$custom-light: #927aeb;
$custom-dark: #000000;
JSON
{
  "hex": "#5145e0",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 224
  },
  "hsl": {
    "h": 244.645,
    "s": 71.429,
    "l": 57.451
  },
  "oklch": {
    "l": 0.50592,
    "c": 0.22468,
    "h": 278.1
  },
  "luminance": 0.11387
}

Semantic roles & 50–950 ramp

primary
#5145E0
secondary
#DBE0A1
accent
#EE3AE0
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5145E0

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

Preview Lab → · Contrast checker → · Palette generator →

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