#5149EB#5149EB

#5149EB is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 52.2% C 0.234 H 276.8°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#5149EB
RGBrgb(81, 73, 235)
HSLhsl(243, 80%, 60%)
HSVhsv(243, 69%, 92%)
CMYKcmyk(65.5%, 68.9%, 0%, 7.8%)
CIE-LABlab(42.02, 51.07, -80.37)
CIE-LCHlch(42.02, 95.22, 302.44°)
OKLaboklab(52.18% 0.0275 -0.2321)
OKLCHoklch(52.18% 0.234 276.8)
XYZxyz(20.7664, 12.5108, 79.9016)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5149EB #E3EB49
analogous
#4992EB #5149EB #A249EB
triadic
#5149EB #EB5149 #49EB51
tetradic
#5149EB #EB4992 #E3EB49 #49EBA2
square
#5149EB #EB4992 #E3EB49 #49EBA2
split-complementary
#5149EB #EBA249 #92EB49
monochromatic
#1A12A7 #2218DE #5149EB #8680F1 #BAB7F7

Accessibility & contrast

On white

6.00
#5149EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5149EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5149EB
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5149EB#FFFFFF#000000##FFFFFF
##5149EB1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF0
Deuteranopia (green-blind)
#005CE8
Tritanopia (blue-blind)
#007595
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5149eb;
/* rgb */ color: rgb(81, 73, 235);
/* oklch */ color: oklch(52.2% 0.234 276.8);
Tailwind
colors: {
  custom: {
    50: '#947df3',
    500: '#5149eb',
    950: '#000000',
  },
}
SCSS
$custom: #5149eb;
$custom-light: #947df3;
$custom-dark: #000000;
JSON
{
  "hex": "#5149eb",
  "rgb": {
    "r": 81,
    "g": 73,
    "b": 235
  },
  "hsl": {
    "h": 242.963,
    "s": 80.198,
    "l": 60.392
  },
  "oklch": {
    "l": 0.52178,
    "c": 0.23368,
    "h": 276.8
  },
  "luminance": 0.12513
}

Semantic roles & 50–950 ramp

primary
#5149EB
secondary
#E4E7A9
accent
#DD09D2
background
#FAF7FF
surface
#F3EEFE
border
#CDC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5149EB

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

Preview Lab → · Contrast checker → · Palette generator →

#5149EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva