#5B5FCF#5B5FCF

#5B5FCF is a mid, vivid blue. Relative luminance 0.149; OKLCH L 54.2% C 0.170 H 277.6°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5B5FCF
RGBrgb(91, 95, 207)
HSLhsl(238, 55%, 58%)
HSVhsv(238, 56%, 81%)
CMYKcmyk(56%, 54.1%, 0%, 18.8%)
CIE-LABlab(45.51, 30.58, -58.69)
CIE-LCHlch(45.51, 66.18, 297.52°)
OKLaboklab(54.24% 0.0224 -0.1681)
OKLCHoklch(54.24% 0.17 277.6)
XYZxyz(19.6655, 14.9122, 60.8615)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5FCF #CFCB5B
analogous
#5B99CF #5B5FCF #915BCF
triadic
#5B5FCF #CF5B5F #5FCF5B
tetradic
#5B5FCF #CF5B99 #CFCB5B #5BCF91
square
#5B5FCF #CF5B99 #CFCB5B #5BCF91
split-complementary
#5B5FCF #CF915B #99CF5B
monochromatic
#282B88 #363AB7 #5B5FCF #8A8DDD #BABBEB

Accessibility & contrast

On white

5.27
#5B5FCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#5B5FCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5FCF
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5FCF#FFFFFF#000000##FFFFFF
##5B5FCF1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1771D3
Deuteranopia (green-blind)
#0067CD
Tritanopia (blue-blind)
#1B798E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b5fcf;
/* rgb */ color: rgb(91, 95, 207);
/* oklch */ color: oklch(54.2% 0.170 277.6);
Tailwind
colors: {
  custom: {
    50: '#938cde',
    500: '#5b5fcf',
    950: '#000000',
  },
}
SCSS
$custom: #5b5fcf;
$custom-light: #938cde;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5fcf",
  "rgb": {
    "r": 91,
    "g": 95,
    "b": 207
  },
  "hsl": {
    "h": 237.931,
    "s": 54.717,
    "l": 58.431
  },
  "oklch": {
    "l": 0.5424,
    "c": 0.16954,
    "h": 277.6
  },
  "luminance": 0.14914
}

Semantic roles & 50–950 ramp

primary
#5B5FCF
secondary
#DAD8AC
accent
#D94ADE
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5B5FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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