#5B7AEA#5B7AEA

#5B7AEA is a mid, vivid blue. Relative luminance 0.221; OKLCH L 61.3% C 0.172 H 269.2°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#5B7AEA
RGBrgb(91, 122, 234)
HSLhsl(227, 77%, 64%)
HSVhsv(227, 61%, 92%)
CMYKcmyk(61.1%, 47.9%, 0%, 8.2%)
CIE-LABlab(54.11, 22.86, -60.12)
CIE-LCHlch(54.11, 64.32, 290.82°)
OKLaboklab(61.28% -0.0024 -0.172)
OKLCHoklch(61.28% 0.172 269.2)
XYZxyz(26.1202, 22.0815, 80.7116)
Luminance0.2208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7AEA #EACB5B
analogous
#5BC1EA #5B7AEA #835BEA
triadic
#5B7AEA #EA5B7A #7AEA5B
tetradic
#5B7AEA #EA5BC1 #EACB5B #5BEA83
square
#5B7AEA #EA5BC1 #EACB5B #5BEA83
split-complementary
#5B7AEA #EA835B #C1EA5B
monochromatic
#1739B4 #254EE3 #5B7AEA #91A6F1 #C8D2F8

Accessibility & contrast

On white

3.88
#5B7AEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#5B7AEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B7AEA
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7AEA#FFFFFF#000000##000000
##5B7AEA1.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4188EE
Deuteranopia (green-blind)
#257BE8
Tritanopia (blue-blind)
#0094A7
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5b7aea;
/* rgb */ color: rgb(91, 122, 234);
/* oklch */ color: oklch(61.3% 0.172 269.2);
Tailwind
colors: {
  custom: {
    50: '#96a0f1',
    500: '#5b7aea',
    950: '#000000',
  },
}
SCSS
$custom: #5b7aea;
$custom-light: #96a0f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7aea",
  "rgb": {
    "r": 91,
    "g": 122,
    "b": 234
  },
  "hsl": {
    "h": 226.993,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.6128,
    "c": 0.17199,
    "h": 269.2
  },
  "luminance": 0.22084
}

Semantic roles & 50–950 ramp

primary
#5B7AEA
secondary
#EADFB7
accent
#AD0CDA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5B7AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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