#5A7EE1#5A7EE1

#5A7EE1 is a mid, vivid blue. Relative luminance 0.225; OKLCH L 61.5% C 0.155 H 266.8°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5A7EE1
RGBrgb(90, 126, 225)
HSLhsl(224, 69%, 62%)
HSVhsv(224, 60%, 88%)
CMYKcmyk(60%, 44%, 0%, 11.8%)
CIE-LABlab(54.58, 17.24, -54.33)
CIE-LCHlch(54.58, 57.00, 287.60°)
OKLaboklab(61.45% -0.0086 -0.1549)
OKLCHoklch(61.45% 0.155 266.8)
XYZxyz(25.2633, 22.5295, 74.2369)
Luminance0.2253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7EE1 #E1BD5A
analogous
#5AC2E1 #5A7EE1 #7A5AE1
triadic
#5A7EE1 #E15A7E #7EE15A
tetradic
#5A7EE1 #E15AC2 #E1BD5A #5AE17A
square
#5A7EE1 #E15AC2 #E1BD5A #5AE17A
split-complementary
#5A7EE1 #E17A5A #C2E15A
monochromatic
#1E41A3 #2756D7 #5A7EE1 #8EA6EA #C2CFF4

Accessibility & contrast

On white

3.81
#5A7EE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#5A7EE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7EE1
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7EE1#FFFFFF#000000##000000
##5A7EE11.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5089E5
Deuteranopia (green-blind)
#3C7DDF
Tritanopia (blue-blind)
#0094A4
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a7ee1;
/* rgb */ color: rgb(90, 126, 225);
/* oklch */ color: oklch(61.5% 0.155 266.8);
Tailwind
colors: {
  custom: {
    50: '#94a2eb',
    500: '#5a7ee1',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ee1;
$custom-light: #94a2eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ee1",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 225
  },
  "hsl": {
    "h": 224,
    "s": 69.231,
    "l": 61.765
  },
  "oklch": {
    "l": 0.61454,
    "c": 0.15517,
    "h": 266.8
  },
  "luminance": 0.22532
}

Semantic roles & 50–950 ramp

primary
#5A7EE1
secondary
#E4D7B2
accent
#9F14D1
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0F16
muted
#7E7E84

Preview Lab

Preview with #5A7EE1

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

Preview Lab → · Contrast checker → · Palette generator →

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