#5B5FDB#5B5FDB

#5B5FDB is a mid, vivid blue. Relative luminance 0.155; OKLCH L 55.1% C 0.186 H 277.0°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5B5FDB
RGBrgb(91, 95, 219)
HSLhsl(238, 64%, 61%)
HSVhsv(238, 58%, 86%)
CMYKcmyk(58.4%, 56.6%, 0%, 14.1%)
CIE-LABlab(46.34, 34.47, -64.21)
CIE-LCHlch(46.34, 72.87, 298.23°)
OKLaboklab(55.12% 0.0227 -0.1843)
OKLCHoklch(55.12% 0.186 277)
XYZxyz(21.1887, 15.5215, 68.8835)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5FDB #DBD75B
analogous
#5B9FDB #5B5FDB #975BDB
triadic
#5B5FDB #DB5B5F #5FDB5B
tetradic
#5B5FDB #DB5B9F #DBD75B #5BDB97
square
#5B5FDB #DB5B9F #DBD75B #5BDB97
split-complementary
#5B5FDB #DB975B #9FDB5B
monochromatic
#22269A #2D32CC #5B5FDB #8D90E6 #BFC1F1

Accessibility & contrast

On white

5.12
#5B5FDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#5B5FDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5FDB
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5FDB#FFFFFF#000000##FFFFFF
##5B5FDB1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#0069D8
Tritanopia (blue-blind)
#007C94
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b5fdb;
/* rgb */ color: rgb(91, 95, 219);
/* oklch */ color: oklch(55.1% 0.186 277.0);
Tailwind
colors: {
  custom: {
    50: '#958ce7',
    500: '#5b5fdb',
    950: '#000000',
  },
}
SCSS
$custom: #5b5fdb;
$custom-light: #958ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5fdb",
  "rgb": {
    "r": 91,
    "g": 95,
    "b": 219
  },
  "hsl": {
    "h": 238.125,
    "s": 64,
    "l": 60.784
  },
  "oklch": {
    "l": 0.55119,
    "c": 0.18568,
    "h": 277
  },
  "luminance": 0.15523
}

Semantic roles & 50–950 ramp

primary
#5B5FDB
secondary
#E1E0B1
accent
#C61ACC
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5B5FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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