#5A638D#5A638D

#5A638D is a mid, moderate blue. Relative luminance 0.130; OKLCH L 50.9% C 0.068 H 274.5°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#5A638D
RGBrgb(90, 99, 141)
HSLhsl(229, 22%, 45%)
HSVhsv(229, 36%, 55%)
CMYKcmyk(36.2%, 29.8%, 0%, 44.7%)
CIE-LABlab(42.79, 7.36, -24.28)
CIE-LCHlch(42.79, 25.37, 286.86°)
OKLaboklab(50.95% 0.0053 -0.0675)
OKLCHoklch(50.95% 0.068 274.5)
XYZxyz(13.4846, 13.0199, 26.9967)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A638D #8D845A
analogous
#5A7C8D #5A638D #6A5A8D
triadic
#5A638D #8D5A63 #638D5A
tetradic
#5A638D #8D5A7C #8D845A #5A8D6A
square
#5A638D #8D5A7C #8D845A #5A8D6A
split-complementary
#5A638D #8D6A5A #7C8D5A
monochromatic
#2A2F42 #424968 #5A638D #7A83AA #9FA6C2

Accessibility & contrast

On white

5.83
#5A638D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#5A638D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A638D
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A638D#FFFFFF#000000##FFFFFF
##5A638D1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#56678F
Deuteranopia (green-blind)
#52638C
Tritanopia (blue-blind)
#4B6B72
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5a638d;
/* rgb */ color: rgb(90, 99, 141);
/* oklch */ color: oklch(50.9% 0.068 274.5);
Tailwind
colors: {
  custom: {
    50: '#8a8fae',
    500: '#5a638d',
    950: '#000000',
  },
}
SCSS
$custom: #5a638d;
$custom-light: #8a8fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5a638d",
  "rgb": {
    "r": 90,
    "g": 99,
    "b": 141
  },
  "hsl": {
    "h": 229.412,
    "s": 22.078,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50949,
    "c": 0.06775,
    "h": 274.5
  },
  "luminance": 0.1302
}

Semantic roles & 50–950 ramp

primary
#5A638D
secondary
#B0AB93
accent
#B069BF
background
#F8F8FA
surface
#F0F0F4
border
#CBCBCE
text
#0C0C10
muted
#7D7D7F

Preview Lab

Preview with #5A638D

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

Preview Lab → · Contrast checker → · Palette generator →

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