#5158E3#5158E3

#5158E3 is a mid, highly saturated blue. Relative luminance 0.143; OKLCH L 53.9% C 0.207 H 274.8°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5158E3
RGBrgb(81, 88, 227)
HSLhsl(237, 72%, 60%)
HSVhsv(237, 64%, 89%)
CMYKcmyk(64.3%, 61.2%, 0%, 11%)
CIE-LABlab(44.62, 39.73, -71.57)
CIE-LCHlch(44.62, 81.86, 299.04°)
OKLaboklab(53.86% 0.0174 -0.2062)
OKLCHoklch(53.86% 0.207 274.8)
XYZxyz(20.7436, 14.2730, 74.3200)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5158E3 #E3DC51
analogous
#51A1E3 #5158E3 #9351E3
triadic
#5158E3 #E35158 #58E351
tetradic
#5158E3 #E351A1 #E3DC51 #51E393
square
#5158E3 #E351A1 #E3DC51 #51E393
split-complementary
#5158E3 #E39351 #A1E351
monochromatic
#1A20A0 #222BD5 #5158E3 #868BEB #BABDF4

Accessibility & contrast

On white

5.45
#5158E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#5158E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5158E3
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5158E3#FFFFFF#000000##FFFFFF
##5158E31.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E8
Deuteranopia (green-blind)
#0063E0
Tritanopia (blue-blind)
#007B95
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5158e3;
/* rgb */ color: rgb(81, 88, 227);
/* oklch */ color: oklch(53.9% 0.207 274.8);
Tailwind
colors: {
  custom: {
    50: '#9187ed',
    500: '#5158e3',
    950: '#000000',
  },
}
SCSS
$custom: #5158e3;
$custom-light: #9187ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5158e3",
  "rgb": {
    "r": 81,
    "g": 88,
    "b": 227
  },
  "hsl": {
    "h": 237.123,
    "s": 72.277,
    "l": 60.392
  },
  "oklch": {
    "l": 0.53865,
    "c": 0.20698,
    "h": 274.8
  },
  "luminance": 0.14275
}

Semantic roles & 50–950 ramp

primary
#5158E3
secondary
#E4E1AC
accent
#CB11D4
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5158E3

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

Preview Lab → · Contrast checker → · Palette generator →

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