#5158E1#5158E1

#5158E1 is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 53.7% C 0.204 H 274.9°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5158E1
RGBrgb(81, 88, 225)
HSLhsl(237, 71%, 60%)
HSVhsv(237, 64%, 88%)
CMYKcmyk(64%, 60.9%, 0%, 11.8%)
CIE-LABlab(44.47, 39.07, -70.69)
CIE-LCHlch(44.47, 80.77, 298.93°)
OKLaboklab(53.7% 0.0175 -0.2037)
OKLCHoklch(53.7% 0.204 274.9)
XYZxyz(20.4692, 14.1633, 72.8747)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5158E1 #E1DA51
analogous
#51A0E1 #5158E1 #9251E1
triadic
#5158E1 #E15158 #58E151
tetradic
#5158E1 #E151A0 #E1DA51 #51E192
square
#5158E1 #E151A0 #E1DA51 #51E192
split-complementary
#5158E1 #E19251 #A0E151
monochromatic
#1B219D #242CD1 #5158E1 #858AEA #B9BCF3

Accessibility & contrast

On white

5.48
#5158E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5158E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5158E1
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5158E1#FFFFFF#000000##FFFFFF
##5158E11.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E5
Deuteranopia (green-blind)
#0063DE
Tritanopia (blue-blind)
#007A94
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5158e1;
/* rgb */ color: rgb(81, 88, 225);
/* oklch */ color: oklch(53.7% 0.204 274.9);
Tailwind
colors: {
  custom: {
    50: '#9187eb',
    500: '#5158e1',
    950: '#000000',
  },
}
SCSS
$custom: #5158e1;
$custom-light: #9187eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5158e1",
  "rgb": {
    "r": 81,
    "g": 88,
    "b": 225
  },
  "hsl": {
    "h": 237.083,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.53702,
    "c": 0.20441,
    "h": 274.9
  },
  "luminance": 0.14165
}

Semantic roles & 50–950 ramp

primary
#5158E1
secondary
#E3E0AB
accent
#E53AED
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5158E1

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

Preview Lab → · Contrast checker → · Palette generator →

#5158E1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva