#5E5BB2#5E5BB2

#5E5BB2 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.7% C 0.134 H 282.2°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5E5BB2
RGBrgb(94, 91, 178)
HSLhsl(242, 36%, 53%)
HSVhsv(242, 49%, 70%)
CMYKcmyk(47.2%, 48.9%, 0%, 30.2%)
CIE-LABlab(42.88, 24.53, -46.10)
CIE-LCHlch(42.88, 52.21, 298.02°)
OKLaboklab(51.73% 0.0283 -0.131)
OKLCHoklch(51.73% 0.134 282.2)
XYZxyz(16.3907, 13.0754, 43.7710)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E5BB2 #AFB25B
analogous
#5B83B2 #5E5BB2 #895BB2
triadic
#5E5BB2 #B25E5B #5BB25E
tetradic
#5E5BB2 #B25B83 #AFB25B #5BB289
square
#5E5BB2 #B25B83 #AFB25B #5BB289
split-complementary
#5E5BB2 #B2895B #83B25B
monochromatic
#312F64 #45428D #5E5BB2 #8785C6 #B0AED9

Accessibility & contrast

On white

5.81
#5E5BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#5E5BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E5BB2
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E5BB2#FFFFFF#000000##FFFFFF
##5E5BB21.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3568B5
Deuteranopia (green-blind)
#3062B0
Tritanopia (blue-blind)
#416D7E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5e5bb2;
/* rgb */ color: rgb(94, 91, 178);
/* oklch */ color: oklch(51.7% 0.134 282.2);
Tailwind
colors: {
  custom: {
    50: '#9189c9',
    500: '#5e5bb2',
    950: '#000000',
  },
}
SCSS
$custom: #5e5bb2;
$custom-light: #9189c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e5bb2",
  "rgb": {
    "r": 94,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 242.069,
    "s": 36.1,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51725,
    "c": 0.134,
    "h": 282.2
  },
  "luminance": 0.13076
}

Semantic roles & 50–950 ramp

primary
#5E5BB2
secondary
#C6C7A2
accent
#CC5CC8
background
#F9F8FC
surface
#F1F0F8
border
#CBCBD1
text
#0D0B13
muted
#7E7C82

Preview Lab

Preview with #5E5BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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