#5A7BE3#5A7BE3

#5A7BE3 is a mid, vivid blue. Relative luminance 0.219; OKLCH L 61.0% C 0.162 H 268.1°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5A7BE3
RGBrgb(90, 123, 227)
HSLhsl(226, 71%, 62%)
HSVhsv(226, 60%, 89%)
CMYKcmyk(60.4%, 45.8%, 0%, 11%)
CIE-LABlab(53.90, 19.73, -56.54)
CIE-LCHlch(53.90, 59.89, 289.24°)
OKLaboklab(60.97% -0.0053 -0.1615)
OKLCHoklch(60.97% 0.162 268.1)
XYZxyz(25.1598, 21.8835, 75.5562)
Luminance0.2189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7BE3 #E3C25A
analogous
#5AC0E3 #5A7BE3 #7D5AE3
triadic
#5A7BE3 #E35A7B #7BE35A
tetradic
#5A7BE3 #E35AC0 #E3C25A #5AE37D
square
#5A7BE3 #E35AC0 #E3C25A #5AE37D
split-complementary
#5A7BE3 #E37D5A #C0E35A
monochromatic
#1C3EA6 #2651DA #5A7BE3 #8EA5EC #C3CFF5

Accessibility & contrast

On white

3.91
#5A7BE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#5A7BE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7BE3
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7BE3#FFFFFF#000000##000000
##5A7BE31.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4987E7
Deuteranopia (green-blind)
#337BE1
Tritanopia (blue-blind)
#0093A4
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5a7be3;
/* rgb */ color: rgb(90, 123, 227);
/* oklch */ color: oklch(61.0% 0.162 268.1);
Tailwind
colors: {
  custom: {
    50: '#94a0ec',
    500: '#5a7be3',
    950: '#000000',
  },
}
SCSS
$custom: #5a7be3;
$custom-light: #94a0ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7be3",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 227
  },
  "hsl": {
    "h": 225.547,
    "s": 70.984,
    "l": 62.157
  },
  "oklch": {
    "l": 0.6097,
    "c": 0.16155,
    "h": 268.1
  },
  "luminance": 0.21886
}

Semantic roles & 50–950 ramp

primary
#5A7BE3
secondary
#E6D9B3
accent
#A512D3
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A7BE3

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

Preview Lab → · Contrast checker → · Palette generator →

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