#5B41EB#5B41EB

#5B41EB is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.8% C 0.240 H 280.9°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5B41EB
RGBrgb(91, 65, 235)
HSLhsl(249, 81%, 59%)
HSVhsv(249, 72%, 92%)
CMYKcmyk(61.3%, 72.3%, 0%, 7.8%)
CIE-LABlab(41.22, 56.58, -81.65)
CIE-LCHlch(41.22, 99.34, 304.72°)
OKLaboklab(51.8% 0.0455 -0.2355)
OKLCHoklch(51.8% 0.24 280.9)
XYZxyz(21.1953, 12.0013, 79.7807)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41EB #D1EB41
analogous
#417CEB #5B41EB #B041EB
triadic
#5B41EB #EB5B41 #41EB5B
tetradic
#5B41EB #EB417C #D1EB41 #41EBB0
square
#5B41EB #EB417C #D1EB41 #41EBB0
split-complementary
#5B41EB #EBB041 #7CEB41
monochromatic
#2711A1 #3417D8 #5B41EB #8B78F1 #BBB0F7

Accessibility & contrast

On white

6.18
#5B41EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5B41EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B41EB
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41EB#FFFFFF#000000##FFFFFF
##5B41EB1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067F0
Deuteranopia (green-blind)
#005BE8
Tritanopia (blue-blind)
#007192
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b41eb;
/* rgb */ color: rgb(91, 65, 235);
/* oklch */ color: oklch(51.8% 0.240 280.9);
Tailwind
colors: {
  custom: {
    50: '#9979f3',
    500: '#5b41eb',
    950: '#000000',
  },
}
SCSS
$custom: #5b41eb;
$custom-light: #9979f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41eb",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 235
  },
  "hsl": {
    "h": 249.176,
    "s": 80.952,
    "l": 58.824
  },
  "oklch": {
    "l": 0.51797,
    "c": 0.23988,
    "h": 280.9
  },
  "luminance": 0.12003
}

Semantic roles & 50–950 ramp

primary
#5B41EB
secondary
#DBE5A2
accent
#F730D9
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5B41EB

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

Preview Lab → · Contrast checker → · Palette generator →

#5B41EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva