#5147EB#5147EB

#5147EB is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 51.9% C 0.236 H 277.0°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#5147EB
RGBrgb(81, 71, 235)
HSLhsl(244, 80%, 60%)
HSVhsv(244, 70%, 92%)
CMYKcmyk(65.5%, 69.8%, 0%, 7.8%)
CIE-LABlab(41.61, 52.18, -81.03)
CIE-LCHlch(41.61, 96.38, 302.78°)
OKLaboklab(51.89% 0.0288 -0.234)
OKLCHoklch(51.89% 0.236 277)
XYZxyz(20.6371, 12.2522, 79.8585)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147EB #E1EB47
analogous
#478FEB #5147EB #A347EB
triadic
#5147EB #EB5147 #47EB51
tetradic
#5147EB #EB478F #E1EB47 #47EBA3
square
#5147EB #EB478F #E1EB47 #47EBA3
split-complementary
#5147EB #EBA347 #8FEB47
monochromatic
#1B12A6 #2418DD #5147EB #857EF1 #B9B5F7

Accessibility & contrast

On white

6.09
#5147EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5147EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147EB
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147EB#FFFFFF#000000##FFFFFF
##5147EB1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069F0
Deuteranopia (green-blind)
#005BE8
Tritanopia (blue-blind)
#007494
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5147eb;
/* rgb */ color: rgb(81, 71, 235);
/* oklch */ color: oklch(51.9% 0.236 277.0);
Tailwind
colors: {
  custom: {
    50: '#947cf3',
    500: '#5147eb',
    950: '#000000',
  },
}
SCSS
$custom: #5147eb;
$custom-light: #947cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#5147eb",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 235
  },
  "hsl": {
    "h": 243.659,
    "s": 80.392,
    "l": 60
  },
  "oklch": {
    "l": 0.51889,
    "c": 0.23575,
    "h": 277
  },
  "luminance": 0.12254
}

Semantic roles & 50–950 ramp

primary
#5147EB
secondary
#E3E6A7
accent
#F731EB
background
#FAF7FF
surface
#F3EEFE
border
#CDC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5147EB

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

Preview Lab → · Contrast checker → · Palette generator →

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