#5158DE#5158DE

#5158DE is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 53.5% C 0.201 H 275.0°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#5158DE
RGBrgb(81, 88, 222)
HSLhsl(237, 68%, 59%)
HSVhsv(237, 64%, 87%)
CMYKcmyk(63.5%, 60.4%, 0%, 12.9%)
CIE-LABlab(44.23, 38.08, -69.37)
CIE-LCHlch(44.23, 79.13, 298.76°)
OKLaboklab(53.46% 0.0176 -0.1998)
OKLCHoklch(53.46% 0.201 275)
XYZxyz(20.0635, 14.0010, 70.7382)
Luminance0.1400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5158DE #DED751
analogous
#519FDE #5158DE #9051DE
triadic
#5158DE #DE5158 #58DE51
tetradic
#5158DE #DE519F #DED751 #51DE90
square
#5158DE #DE519F #DED751 #51DE90
split-complementary
#5158DE #DE9051 #9FDE51
monochromatic
#1D2398 #272FCB #5158DE #8489E8 #B8BBF2

Accessibility & contrast

On white

5.53
#5158DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#5158DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5158DE
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5158DE#FFFFFF#000000##FFFFFF
##5158DE1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE2
Deuteranopia (green-blind)
#0062DB
Tritanopia (blue-blind)
#007993
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5158de;
/* rgb */ color: rgb(81, 88, 222);
/* oklch */ color: oklch(53.5% 0.201 275.0);
Tailwind
colors: {
  custom: {
    50: '#9187e9',
    500: '#5158de',
    950: '#000000',
  },
}
SCSS
$custom: #5158de;
$custom-light: #9187e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5158de",
  "rgb": {
    "r": 81,
    "g": 88,
    "b": 222
  },
  "hsl": {
    "h": 237.021,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.53459,
    "c": 0.20054,
    "h": 275
  },
  "luminance": 0.14003
}

Semantic roles & 50–950 ramp

primary
#5158DE
secondary
#E1DEAA
accent
#E23DEB
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5158DE

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

Preview Lab → · Contrast checker → · Palette generator →

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