#5A7EE3#5A7EE3

#5A7EE3 is a mid, vivid blue. Relative luminance 0.226; OKLCH L 61.6% C 0.158 H 267.0°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#5A7EE3
RGBrgb(90, 126, 227)
HSLhsl(224, 71%, 62%)
HSVhsv(224, 60%, 89%)
CMYKcmyk(60.4%, 44.5%, 0%, 11%)
CIE-LABlab(54.70, 17.90, -55.27)
CIE-LCHlch(54.70, 58.10, 287.95°)
OKLaboklab(61.58% -0.0083 -0.1577)
OKLCHoklch(61.58% 0.158 267)
XYZxyz(25.5377, 22.6392, 75.6822)
Luminance0.2264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7EE3 #E3BF5A
analogous
#5AC2E3 #5A7EE3 #7B5AE3
triadic
#5A7EE3 #E35A7E #7EE35A
tetradic
#5A7EE3 #E35AC2 #E3BF5A #5AE37B
square
#5A7EE3 #E35AC2 #E3BF5A #5AE37B
split-complementary
#5A7EE3 #E37B5A #C2E35A
monochromatic
#1C41A6 #2655DA #5A7EE3 #8EA7EC #C3D0F5

Accessibility & contrast

On white

3.80
#5A7EE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#5A7EE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7EE3
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7EE3#FFFFFF#000000##000000
##5A7EE31.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F89E7
Deuteranopia (green-blind)
#3A7DE1
Tritanopia (blue-blind)
#0095A5
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a7ee3;
/* rgb */ color: rgb(90, 126, 227);
/* oklch */ color: oklch(61.6% 0.158 267.0);
Tailwind
colors: {
  custom: {
    50: '#94a2ec',
    500: '#5a7ee3',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ee3;
$custom-light: #94a2ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ee3",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 227
  },
  "hsl": {
    "h": 224.234,
    "s": 70.984,
    "l": 62.157
  },
  "oklch": {
    "l": 0.61579,
    "c": 0.1579,
    "h": 267
  },
  "luminance": 0.22641
}

Semantic roles & 50–950 ramp

primary
#5A7EE3
secondary
#E6D8B3
accent
#A012D3
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0F16
muted
#7E7E84

Preview Lab

Preview with #5A7EE3

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

Preview Lab → · Contrast checker → · Palette generator →

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