#5B5FCA#5B5FCA

#5B5FCA is a mid, vivid blue. Relative luminance 0.147; OKLCH L 53.9% C 0.163 H 277.8°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5B5FCA
RGBrgb(91, 95, 202)
HSLhsl(238, 51%, 57%)
HSVhsv(238, 55%, 79%)
CMYKcmyk(55%, 53%, 0%, 20.8%)
CIE-LABlab(45.18, 28.97, -56.35)
CIE-LCHlch(45.18, 63.36, 297.21°)
OKLaboklab(53.89% 0.0222 -0.1612)
OKLCHoklch(53.89% 0.163 277.8)
XYZxyz(19.0639, 14.6716, 57.6930)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5FCA #CAC65B
analogous
#5B96CA #5B5FCA #8F5BCA
triadic
#5B5FCA #CA5B5F #5FCA5B
tetradic
#5B5FCA #CA5B96 #CAC65B #5BCA8F
square
#5B5FCA #CA5B96 #CAC65B #5BCA8F
split-complementary
#5B5FCA #CA8F5B #96CA5B
monochromatic
#2A2D81 #393DAF #5B5FCA #898CD9 #B8B9E8

Accessibility & contrast

On white

5.34
#5B5FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5B5FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5FCA
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5FCA#FFFFFF#000000##FFFFFF
##5B5FCA1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2170CE
Deuteranopia (green-blind)
#0767C8
Tritanopia (blue-blind)
#23778B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b5fca;
/* rgb */ color: rgb(91, 95, 202);
/* oklch */ color: oklch(53.9% 0.163 277.8);
Tailwind
colors: {
  custom: {
    50: '#928cdb',
    500: '#5b5fca',
    950: '#000000',
  },
}
SCSS
$custom: #5b5fca;
$custom-light: #928cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5fca",
  "rgb": {
    "r": 91,
    "g": 95,
    "b": 202
  },
  "hsl": {
    "h": 237.838,
    "s": 51.152,
    "l": 57.451
  },
  "oklch": {
    "l": 0.53885,
    "c": 0.16269,
    "h": 277.8
  },
  "luminance": 0.14673
}

Semantic roles & 50–950 ramp

primary
#5B5FCA
secondary
#D7D5AA
accent
#D64DDB
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5B5FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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