#5B5FA2#5B5FA2

#5B5FA2 is a mid, moderate blue. Relative luminance 0.130; OKLCH L 51.3% C 0.105 H 279.4°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#5B5FA2
RGBrgb(91, 95, 162)
HSLhsl(237, 28%, 50%)
HSVhsv(237, 44%, 64%)
CMYKcmyk(43.8%, 41.4%, 0%, 36.5%)
CIE-LABlab(42.79, 16.36, -36.81)
CIE-LCHlch(42.79, 40.28, 293.96°)
OKLaboklab(51.3% 0.0172 -0.1038)
OKLCHoklch(51.3% 0.105 279.4)
XYZxyz(14.9262, 13.0165, 35.9014)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5FA2 #A29E5B
analogous
#5B83A2 #5B5FA2 #7B5BA2
triadic
#5B5FA2 #A25B5F #5FA25B
tetradic
#5B5FA2 #A25B83 #A29E5B #5BA27B
square
#5B5FA2 #A25B83 #A29E5B #5BA27B
split-complementary
#5B5FA2 #A27B5B #83A25B
monochromatic
#2F3154 #45487B #5B5FA2 #8285B9 #A9ABCF

Accessibility & contrast

On white

5.83
#5B5FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#5B5FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5FA2
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5FA2#FFFFFF#000000##FFFFFF
##5B5FA21.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4768A5
Deuteranopia (green-blind)
#4262A0
Tritanopia (blue-blind)
#446D78
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5b5fa2;
/* rgb */ color: rgb(91, 95, 162);
/* oklch */ color: oklch(51.3% 0.105 279.4);
Tailwind
colors: {
  custom: {
    50: '#8d8cbe',
    500: '#5b5fa2',
    950: '#000000',
  },
}
SCSS
$custom: #5b5fa2;
$custom-light: #8d8cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5fa2",
  "rgb": {
    "r": 91,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 236.62,
    "s": 28.063,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51303,
    "c": 0.10525,
    "h": 279.4
  },
  "luminance": 0.13017
}

Semantic roles & 50–950 ramp

primary
#5B5FA2
secondary
#BDBB9C
accent
#BF63C4
background
#F8F8FB
surface
#F0F0F7
border
#CBCBD0
text
#0C0C12
muted
#7D7D81

Preview Lab

Preview with #5B5FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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