#5158DD#5158DD

#5158DD is a mid, vivid blue. Relative luminance 0.139; OKLCH L 53.4% C 0.199 H 275.1°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#5158DD
RGBrgb(81, 88, 221)
HSLhsl(237, 67%, 59%)
HSVhsv(237, 63%, 87%)
CMYKcmyk(63.3%, 60.2%, 0%, 13.3%)
CIE-LABlab(44.16, 37.75, -68.92)
CIE-LCHlch(44.16, 78.58, 298.71°)
OKLaboklab(53.38% 0.0176 -0.1985)
OKLCHoklch(53.38% 0.199 275.1)
XYZxyz(19.9299, 13.9476, 70.0345)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5158DD #DDD651
analogous
#519EDD #5158DD #9051DD
triadic
#5158DD #DD5158 #58DD51
tetradic
#5158DD #DD519E #DDD651 #51DD90
square
#5158DD #DD519E #DDD651 #51DD90
split-complementary
#5158DD #DD9051 #9EDD51
monochromatic
#1D2396 #272FC9 #5158DD #8489E7 #B7BAF1

Accessibility & contrast

On white

5.54
#5158DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#5158DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5158DD
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5158DD#FFFFFF#000000##FFFFFF
##5158DD1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE1
Deuteranopia (green-blind)
#0062DA
Tritanopia (blue-blind)
#007992
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5158dd;
/* rgb */ color: rgb(81, 88, 221);
/* oklch */ color: oklch(53.4% 0.199 275.1);
Tailwind
colors: {
  custom: {
    50: '#9087e9',
    500: '#5158dd',
    950: '#000000',
  },
}
SCSS
$custom: #5158dd;
$custom-light: #9087e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5158dd",
  "rgb": {
    "r": 81,
    "g": 88,
    "b": 221
  },
  "hsl": {
    "h": 237,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.53378,
    "c": 0.19924,
    "h": 275.1
  },
  "luminance": 0.13949
}

Semantic roles & 50–950 ramp

primary
#5158DD
secondary
#E0DEAA
accent
#E23EEA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5158DD

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

Preview Lab → · Contrast checker → · Palette generator →

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