#5A6FE3#5A6FE3

#5A6FE3 is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.6% C 0.176 H 272.1°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#5A6FE3
RGBrgb(90, 111, 227)
HSLhsl(231, 71%, 62%)
HSVhsv(231, 60%, 89%)
CMYKcmyk(60.4%, 51.1%, 0%, 11%)
CIE-LABlab(50.79, 27.10, -61.55)
CIE-LCHlch(50.79, 67.25, 293.76°)
OKLaboklab(58.61% 0.0066 -0.1763)
OKLCHoklch(58.61% 0.176 272.1)
XYZxyz(23.7614, 19.0867, 75.0901)
Luminance0.1909 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6FE3 #E3CE5A
analogous
#5AB3E3 #5A6FE3 #8A5AE3
triadic
#5A6FE3 #E35A6F #6FE35A
tetradic
#5A6FE3 #E35AB3 #E3CE5A #5AE38A
square
#5A6FE3 #E35AB3 #E3CE5A #5AE38A
split-complementary
#5A6FE3 #E38A5A #B3E35A
monochromatic
#1C31A6 #2641DA #5A6FE3 #8E9DEC #C3CAF5

Accessibility & contrast

On white

4.36
#5A6FE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#5A6FE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A6FE3
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6FE3#FFFFFF#000000##000000
##5A6FE31.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C7FE7
Deuteranopia (green-blind)
#0073E1
Tritanopia (blue-blind)
#008A9E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5a6fe3;
/* rgb */ color: rgb(90, 111, 227);
/* oklch */ color: oklch(58.6% 0.176 272.1);
Tailwind
colors: {
  custom: {
    50: '#9498ec',
    500: '#5a6fe3',
    950: '#000000',
  },
}
SCSS
$custom: #5a6fe3;
$custom-light: #9498ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6fe3",
  "rgb": {
    "r": 90,
    "g": 111,
    "b": 227
  },
  "hsl": {
    "h": 230.803,
    "s": 70.984,
    "l": 62.157
  },
  "oklch": {
    "l": 0.58605,
    "c": 0.17644,
    "h": 272.1
  },
  "luminance": 0.19089
}

Semantic roles & 50–950 ramp

primary
#5A6FE3
secondary
#E6DEB3
accent
#B512D3
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5A6FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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