#5158D0#5158D0

#5158D0 is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.4% C 0.182 H 275.6°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5158D0
RGBrgb(81, 88, 208)
HSLhsl(237, 57%, 57%)
HSVhsv(237, 61%, 82%)
CMYKcmyk(61.1%, 57.7%, 0%, 18.4%)
CIE-LABlab(43.18, 33.43, -63.07)
CIE-LCHlch(43.18, 71.38, 297.92°)
OKLaboklab(52.35% 0.0178 -0.1813)
OKLCHoklch(52.35% 0.182 275.6)
XYZxyz(18.2645, 13.2814, 61.2634)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5158D0 #D0C951
analogous
#5198D0 #5158D0 #8A51D0
triadic
#5158D0 #D05158 #58D051
tetradic
#5158D0 #D05198 #D0C951 #51D08A
square
#5158D0 #D05198 #D0C951 #51D08A
split-complementary
#5158D0 #D08A51 #98D051
monochromatic
#232983 #3038B3 #5158D0 #8186DD #B1B4EA

Accessibility & contrast

On white

5.74
#5158D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5158D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5158D0
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5158D0#FFFFFF#000000##FFFFFF
##5158D01.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD4
Deuteranopia (green-blind)
#0061CE
Tritanopia (blue-blind)
#00758B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5158d0;
/* rgb */ color: rgb(81, 88, 208);
/* oklch */ color: oklch(52.4% 0.182 275.6);
Tailwind
colors: {
  custom: {
    50: '#8e87df',
    500: '#5158d0',
    950: '#000000',
  },
}
SCSS
$custom: #5158d0;
$custom-light: #8e87df;
$custom-dark: #000000;
JSON
{
  "hex": "#5158d0",
  "rgb": {
    "r": 81,
    "g": 88,
    "b": 208
  },
  "hsl": {
    "h": 236.693,
    "s": 57.466,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52352,
    "c": 0.18213,
    "h": 275.6
  },
  "luminance": 0.13283
}

Semantic roles & 50–950 ramp

primary
#5158D0
secondary
#D8D6A4
accent
#D847E1
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5158D0

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

Preview Lab → · Contrast checker → · Palette generator →

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