#5B5FCD#5B5FCD

#5B5FCD is a mid, vivid blue. Relative luminance 0.148; OKLCH L 54.1% C 0.167 H 277.7°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#5B5FCD
RGBrgb(91, 95, 205)
HSLhsl(238, 53%, 58%)
HSVhsv(238, 56%, 80%)
CMYKcmyk(55.6%, 53.7%, 0%, 19.6%)
CIE-LABlab(45.38, 29.94, -57.76)
CIE-LCHlch(45.38, 65.06, 297.40°)
OKLaboklab(54.1% 0.0223 -0.1653)
OKLCHoklch(54.1% 0.167 277.7)
XYZxyz(19.4225, 14.8150, 59.5819)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5FCD #CDC95B
analogous
#5B98CD #5B5FCD #905BCD
triadic
#5B5FCD #CD5B5F #5FCD5B
tetradic
#5B5FCD #CD5B98 #CDC95B #5BCD90
square
#5B5FCD #CD5B98 #CDC95B #5BCD90
split-complementary
#5B5FCD #CD905B #98CD5B
monochromatic
#292C85 #373BB4 #5B5FCD #8A8DDB #B9BBEA

Accessibility & contrast

On white

5.30
#5B5FCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#5B5FCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5FCD
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5FCD#FFFFFF#000000##FFFFFF
##5B5FCD1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C70D1
Deuteranopia (green-blind)
#0067CB
Tritanopia (blue-blind)
#1F788D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b5fcd;
/* rgb */ color: rgb(91, 95, 205);
/* oklch */ color: oklch(54.1% 0.167 277.7);
Tailwind
colors: {
  custom: {
    50: '#928cdd',
    500: '#5b5fcd',
    950: '#000000',
  },
}
SCSS
$custom: #5b5fcd;
$custom-light: #928cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5fcd",
  "rgb": {
    "r": 91,
    "g": 95,
    "b": 205
  },
  "hsl": {
    "h": 237.895,
    "s": 53.271,
    "l": 58.039
  },
  "oklch": {
    "l": 0.54098,
    "c": 0.16681,
    "h": 277.7
  },
  "luminance": 0.14816
}

Semantic roles & 50–950 ramp

primary
#5B5FCD
secondary
#D9D7AB
accent
#D84BDD
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5B5FCD

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

Preview Lab → · Contrast checker → · Palette generator →

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