#5158DC#5158DC

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

Color values

HEX#5158DC
RGBrgb(81, 88, 220)
HSLhsl(237, 67%, 59%)
HSVhsv(237, 63%, 86%)
CMYKcmyk(63.2%, 60%, 0%, 13.7%)
CIE-LABlab(44.08, 37.42, -68.48)
CIE-LCHlch(44.08, 78.03, 298.65°)
OKLaboklab(53.3% 0.0176 -0.1972)
OKLCHoklch(53.3% 0.198 275.1)
XYZxyz(19.7971, 13.8944, 69.3349)
Luminance0.1390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5158DC #DCD551
analogous
#519EDC #5158DC #9051DC
triadic
#5158DC #DC5158 #58DC51
tetradic
#5158DC #DC519E #DCD551 #51DC90
square
#5158DC #DC519E #DCD551 #51DC90
split-complementary
#5158DC #DC9051 #9EDC51
monochromatic
#1E2495 #2830C8 #5158DC #8489E6 #B7BAF0

Accessibility & contrast

On white

5.56
#5158DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#5158DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5158DC
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5158DC#FFFFFF#000000##FFFFFF
##5158DC1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5158dc;
/* rgb */ color: rgb(81, 88, 220);
/* oklch */ color: oklch(53.3% 0.198 275.1);
Tailwind
colors: {
  custom: {
    50: '#9087e8',
    500: '#5158dc',
    950: '#000000',
  },
}
SCSS
$custom: #5158dc;
$custom-light: #9087e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5158dc",
  "rgb": {
    "r": 81,
    "g": 88,
    "b": 220
  },
  "hsl": {
    "h": 236.978,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.53298,
    "c": 0.19795,
    "h": 275.1
  },
  "luminance": 0.13896
}

Semantic roles & 50–950 ramp

primary
#5158DC
secondary
#E0DDA9
accent
#E13EE9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5158DC

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

Preview Lab → · Contrast checker → · Palette generator →

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