#5A7BE1#5A7BE1

#5A7BE1 is a mid, vivid blue. Relative luminance 0.218; OKLCH L 60.8% C 0.159 H 268.0°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5A7BE1
RGBrgb(90, 123, 225)
HSLhsl(225, 69%, 62%)
HSVhsv(225, 60%, 88%)
CMYKcmyk(60%, 45.3%, 0%, 11.8%)
CIE-LABlab(53.79, 19.07, -55.61)
CIE-LCHlch(53.79, 58.79, 288.93°)
OKLaboklab(60.84% -0.0056 -0.1587)
OKLCHoklch(60.84% 0.159 268)
XYZxyz(24.8854, 21.7737, 74.1109)
Luminance0.2178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7BE1 #E1C05A
analogous
#5ABFE1 #5A7BE1 #7D5AE1
triadic
#5A7BE1 #E15A7B #7BE15A
tetradic
#5A7BE1 #E15ABF #E1C05A #5AE17D
square
#5A7BE1 #E15ABF #E1C05A #5AE17D
split-complementary
#5A7BE1 #E17D5A #BFE15A
monochromatic
#1E3EA3 #2752D7 #5A7BE1 #8EA4EA #C2CEF4

Accessibility & contrast

On white

3.92
#5A7BE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#5A7BE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7BE1
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7BE1#FFFFFF#000000##000000
##5A7BE11.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B87E5
Deuteranopia (green-blind)
#367BDF
Tritanopia (blue-blind)
#0092A3
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5a7be1;
/* rgb */ color: rgb(90, 123, 225);
/* oklch */ color: oklch(60.8% 0.159 268.0);
Tailwind
colors: {
  custom: {
    50: '#94a0eb',
    500: '#5a7be1',
    950: '#000000',
  },
}
SCSS
$custom: #5a7be1;
$custom-light: #94a0eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7be1",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 225
  },
  "hsl": {
    "h": 225.333,
    "s": 69.231,
    "l": 61.765
  },
  "oklch": {
    "l": 0.60843,
    "c": 0.15881,
    "h": 268
  },
  "luminance": 0.21776
}

Semantic roles & 50–950 ramp

primary
#5A7BE1
secondary
#E4D8B2
accent
#A314D1
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A7BE1

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

Preview Lab → · Contrast checker → · Palette generator →

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