#5158E0#5158E0

#5158E0 is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 53.6% C 0.203 H 274.9°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#5158E0
RGBrgb(81, 88, 224)
HSLhsl(237, 70%, 60%)
HSVhsv(237, 64%, 88%)
CMYKcmyk(63.8%, 60.7%, 0%, 12.2%)
CIE-LABlab(44.39, 38.74, -70.25)
CIE-LCHlch(44.39, 80.23, 298.88°)
OKLaboklab(53.62% 0.0175 -0.2024)
OKLCHoklch(53.62% 0.203 274.9)
XYZxyz(20.3332, 14.1089, 72.1583)
Luminance0.1411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5158E0 #E0D951
analogous
#51A0E0 #5158E0 #9251E0
triadic
#5158E0 #E05158 #58E051
tetradic
#5158E0 #E051A0 #E0D951 #51E092
square
#5158E0 #E051A0 #E0D951 #51E092
split-complementary
#5158E0 #E09251 #A0E051
monochromatic
#1C229B #252DCF #5158E0 #858AE9 #B9BCF3

Accessibility & contrast

On white

5.49
#5158E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#5158E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5158E0
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5158E0#FFFFFF#000000##FFFFFF
##5158E01.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE4
Deuteranopia (green-blind)
#0063DD
Tritanopia (blue-blind)
#007A94
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5158e0;
/* rgb */ color: rgb(81, 88, 224);
/* oklch */ color: oklch(53.6% 0.203 274.9);
Tailwind
colors: {
  custom: {
    50: '#9187eb',
    500: '#5158e0',
    950: '#000000',
  },
}
SCSS
$custom: #5158e0;
$custom-light: #9187eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5158e0",
  "rgb": {
    "r": 81,
    "g": 88,
    "b": 224
  },
  "hsl": {
    "h": 237.063,
    "s": 69.756,
    "l": 59.804
  },
  "oklch": {
    "l": 0.53621,
    "c": 0.20313,
    "h": 274.9
  },
  "luminance": 0.14111
}

Semantic roles & 50–950 ramp

primary
#5158E0
secondary
#E2DFAB
accent
#E43BED
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5158E0

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

Preview Lab → · Contrast checker → · Palette generator →

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