#5B5FE0#5B5FE0

#5B5FE0 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 55.5% C 0.192 H 276.8°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5B5FE0
RGBrgb(91, 95, 224)
HSLhsl(238, 68%, 62%)
HSVhsv(238, 59%, 88%)
CMYKcmyk(59.4%, 57.6%, 0%, 12.2%)
CIE-LABlab(46.70, 36.09, -66.47)
CIE-LCHlch(46.70, 75.63, 298.50°)
OKLaboklab(55.5% 0.0227 -0.1909)
OKLCHoklch(55.5% 0.192 276.8)
XYZxyz(21.8568, 15.7887, 72.4023)
Luminance0.1579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5FE0 #E0DC5B
analogous
#5BA2E0 #5B5FE0 #995BE0
triadic
#5B5FE0 #E05B5F #5FE05B
tetradic
#5B5FE0 #E05BA2 #E0DC5B #5BE099
square
#5B5FE0 #E05BA2 #E0DC5B #5BE099
split-complementary
#5B5FE0 #E0995B #A2E05B
monochromatic
#1F23A2 #282ED5 #5B5FE0 #8E91EA #C2C3F3

Accessibility & contrast

On white

5.05
#5B5FE0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#5B5FE0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5FE0
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5FE0#FFFFFF#000000##FFFFFF
##5B5FE01.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E4
Deuteranopia (green-blind)
#0069DD
Tritanopia (blue-blind)
#007E96
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b5fe0;
/* rgb */ color: rgb(91, 95, 224);
/* oklch */ color: oklch(55.5% 0.192 276.8);
Tailwind
colors: {
  custom: {
    50: '#958ceb',
    500: '#5b5fe0',
    950: '#000000',
  },
}
SCSS
$custom: #5b5fe0;
$custom-light: #958ceb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5fe0",
  "rgb": {
    "r": 91,
    "g": 95,
    "b": 224
  },
  "hsl": {
    "h": 238.195,
    "s": 68.205,
    "l": 61.765
  },
  "oklch": {
    "l": 0.55495,
    "c": 0.19229,
    "h": 276.8
  },
  "luminance": 0.1579
}

Semantic roles & 50–950 ramp

primary
#5B5FE0
secondary
#E4E3B3
accent
#CB15D0
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5B5FE0

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

Preview Lab → · Contrast checker → · Palette generator →

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