#5B7AF1#5B7AF1

#5B7AF1 is a mid, vivid blue. Relative luminance 0.225; OKLCH L 61.7% C 0.181 H 269.5°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#5B7AF1
RGBrgb(91, 122, 241)
HSLhsl(228, 84%, 65%)
HSVhsv(228, 62%, 95%)
CMYKcmyk(62.2%, 49.4%, 0%, 5.5%)
CIE-LABlab(54.54, 25.20, -63.33)
CIE-LCHlch(54.54, 68.16, 291.70°)
OKLaboklab(61.75% -0.0016 -0.1814)
OKLCHoklch(61.75% 0.181 269.5)
XYZxyz(27.1457, 22.4917, 86.1128)
Luminance0.2249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7AF1 #F1D25B
analogous
#5BC5F1 #5B7AF1 #875BF1
triadic
#5B7AF1 #F15B7A #7AF15B
tetradic
#5B7AF1 #F15BC5 #F1D25B #5BF187
square
#5B7AF1 #F15BC5 #F1D25B #5BF187
split-complementary
#5B7AF1 #F1875B #C5F15B
monochromatic
#1035C1 #234CEC #5B7AF1 #93A8F6 #CCD5FB

Accessibility & contrast

On white

3.82
#5B7AF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#5B7AF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B7AF1
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7AF1#FFFFFF#000000##000000
##5B7AF11.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#398AF5
Deuteranopia (green-blind)
#117CEF
Tritanopia (blue-blind)
#0096AA
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5b7af1;
/* rgb */ color: rgb(91, 122, 241);
/* oklch */ color: oklch(61.7% 0.181 269.5);
Tailwind
colors: {
  custom: {
    50: '#97a0f6',
    500: '#5b7af1',
    950: '#000000',
  },
}
SCSS
$custom: #5b7af1;
$custom-light: #97a0f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7af1",
  "rgb": {
    "r": 91,
    "g": 122,
    "b": 241
  },
  "hsl": {
    "h": 227.6,
    "s": 84.27,
    "l": 65.098
  },
  "oklch": {
    "l": 0.61746,
    "c": 0.18141,
    "h": 269.5
  },
  "luminance": 0.22494
}

Semantic roles & 50–950 ramp

primary
#5B7AF1
secondary
#EDE3BA
accent
#B305E1
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5B7AF1

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

Preview Lab → · Contrast checker → · Palette generator →

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