#5158DA#5158DA

#5158DA is a mid, vivid blue. Relative luminance 0.138; OKLCH L 53.1% C 0.195 H 275.2°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#5158DA
RGBrgb(81, 88, 218)
HSLhsl(237, 65%, 59%)
HSVhsv(237, 63%, 85%)
CMYKcmyk(62.8%, 59.6%, 0%, 14.5%)
CIE-LABlab(43.93, 36.75, -67.58)
CIE-LCHlch(43.93, 76.93, 298.54°)
OKLaboklab(53.14% 0.0177 -0.1945)
OKLCHoklch(53.14% 0.195 275.2)
XYZxyz(19.5338, 13.7891, 67.9482)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5158DA #DAD351
analogous
#519CDA #5158DA #8E51DA
triadic
#5158DA #DA5158 #58DA51
tetradic
#5158DA #DA519C #DAD351 #51DA8E
square
#5158DA #DA519C #DAD351 #51DA8E
split-complementary
#5158DA #DA8E51 #9CDA51
monochromatic
#1F2592 #2A32C4 #5158DA #8388E5 #B6B9EF

Accessibility & contrast

On white

5.59
#5158DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#5158DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5158DA
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5158DA#FFFFFF#000000##FFFFFF
##5158DA1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDE
Deuteranopia (green-blind)
#0062D7
Tritanopia (blue-blind)
#007890
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5158da;
/* rgb */ color: rgb(81, 88, 218);
/* oklch */ color: oklch(53.1% 0.195 275.2);
Tailwind
colors: {
  custom: {
    50: '#9087e6',
    500: '#5158da',
    950: '#000000',
  },
}
SCSS
$custom: #5158da;
$custom-light: #9087e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5158da",
  "rgb": {
    "r": 81,
    "g": 88,
    "b": 218
  },
  "hsl": {
    "h": 236.934,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.53138,
    "c": 0.19533,
    "h": 275.2
  },
  "luminance": 0.13791
}

Semantic roles & 50–950 ramp

primary
#5158DA
secondary
#DEDCA8
accent
#DF40E8
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5158DA

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

Preview Lab → · Contrast checker → · Palette generator →

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