#5148CE#5148CE

#5148CE is a mid, vivid blue. Relative luminance 0.108; OKLCH L 49.5% C 0.199 H 279.2°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#5148CE
RGBrgb(81, 72, 206)
HSLhsl(244, 58%, 55%)
HSVhsv(244, 65%, 81%)
CMYKcmyk(60.7%, 65%, 0%, 19.2%)
CIE-LABlab(39.31, 42.47, -68.23)
CIE-LCHlch(39.31, 80.37, 301.90°)
OKLaboklab(49.46% 0.0319 -0.1965)
OKLCHoklch(49.46% 0.199 279.2)
XYZxyz(16.8477, 10.8390, 59.5849)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148CE #C5CE48
analogous
#4882CE #5148CE #9448CE
triadic
#5148CE #CE5148 #48CE51
tetradic
#5148CE #CE4882 #C5CE48 #48CE94
square
#5148CE #CE4882 #C5CE48 #48CE94
split-complementary
#5148CE #CE9448 #82CE48
monochromatic
#27217B #362EAB #5148CE #7F78DB #ADA9E8

Accessibility & contrast

On white

6.63
#5148CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5148CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148CE
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148CE#FFFFFF#000000##FFFFFF
##5148CE1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D2
Deuteranopia (green-blind)
#0057CB
Tritanopia (blue-blind)
#006A85
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5148ce;
/* rgb */ color: rgb(81, 72, 206);
/* oklch */ color: oklch(49.5% 0.199 279.2);
Tailwind
colors: {
  custom: {
    50: '#8f7cde',
    500: '#5148ce',
    950: '#000000',
  },
}
SCSS
$custom: #5148ce;
$custom-light: #8f7cde;
$custom-dark: #000000;
JSON
{
  "hex": "#5148ce",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 206
  },
  "hsl": {
    "h": 244.03,
    "s": 57.759,
    "l": 54.51
  },
  "oklch": {
    "l": 0.49457,
    "c": 0.1991,
    "h": 279.2
  },
  "luminance": 0.1084
}

Semantic roles & 50–950 ramp

primary
#5148CE
secondary
#D1D59D
accent
#E147D7
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5148CE

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

Preview Lab → · Contrast checker → · Palette generator →

#5148CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva