#5158BC#5158BC

#5158BC is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.9% C 0.155 H 276.4°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#5158BC
RGBrgb(81, 88, 188)
HSLhsl(236, 44%, 53%)
HSVhsv(236, 57%, 74%)
CMYKcmyk(56.9%, 53.2%, 0%, 26.3%)
CIE-LABlab(41.78, 26.78, -53.76)
CIE-LCHlch(41.78, 60.06, 296.48°)
OKLaboklab(50.86% 0.0172 -0.1539)
OKLCHoklch(50.86% 0.155 276.4)
XYZxyz(15.9573, 12.3585, 49.1118)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5158BC #BCB551
analogous
#518DBC #5158BC #8051BC
triadic
#5158BC #BC5158 #58BC51
tetradic
#5158BC #BC518D #BCB551 #51BC80
square
#5158BC #BC518D #BCB551 #51BC80
split-complementary
#5158BC #BC8051 #8DBC51
monochromatic
#292D6A #3A4096 #5158BC #7D82CD #A9ADDE

Accessibility & contrast

On white

6.05
#5158BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5158BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5158BC
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5158BC#FFFFFF#000000##FFFFFF
##5158BC1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D67BF
Deuteranopia (green-blind)
#005EBA
Tritanopia (blue-blind)
#126F81
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5158bc;
/* rgb */ color: rgb(81, 88, 188);
/* oklch */ color: oklch(50.9% 0.155 276.4);
Tailwind
colors: {
  custom: {
    50: '#8b87d1',
    500: '#5158bc',
    950: '#000000',
  },
}
SCSS
$custom: #5158bc;
$custom-light: #8b87d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5158bc",
  "rgb": {
    "r": 81,
    "g": 88,
    "b": 188
  },
  "hsl": {
    "h": 236.075,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5086,
    "c": 0.15483,
    "h": 276.4
  },
  "luminance": 0.1236
}

Semantic roles & 50–950 ramp

primary
#5158BC
secondary
#CCC99D
accent
#CC54D4
background
#F9F8FC
surface
#F1EFF9
border
#CBCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5158BC

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

Preview Lab → · Contrast checker → · Palette generator →

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