#5A62BF#5A62BF

#5A62BF is a mid, vivid blue. Relative luminance 0.147; OKLCH L 53.6% C 0.143 H 276.7°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5A62BF
RGBrgb(90, 98, 191)
HSLhsl(235, 44%, 55%)
HSVhsv(235, 53%, 75%)
CMYKcmyk(52.9%, 48.7%, 0%, 25.1%)
CIE-LABlab(45.18, 23.35, -50.01)
CIE-LCHlch(45.18, 55.19, 295.03°)
OKLaboklab(53.64% 0.0168 -0.1425)
OKLCHoklch(53.64% 0.144 276.7)
XYZxyz(17.9851, 14.6695, 51.1639)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A62BF #BFB75A
analogous
#5A94BF #5A62BF #855ABF
triadic
#5A62BF #BF5A62 #62BF5A
tetradic
#5A62BF #BF5A94 #BFB75A #5ABF85
square
#5A62BF #BF5A94 #BFB75A #5ABF85
split-complementary
#5A62BF #BF855A #94BF5A
monochromatic
#2C3272 #3D459E #5A62BF #868CD0 #B2B6E1

Accessibility & contrast

On white

5.34
#5A62BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5A62BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A62BF
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A62BF#FFFFFF#000000##FFFFFF
##5A62BF1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366FC2
Deuteranopia (green-blind)
#2B67BD
Tritanopia (blue-blind)
#2D7687
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a62bf;
/* rgb */ color: rgb(90, 98, 191);
/* oklch */ color: oklch(53.6% 0.143 276.7);
Tailwind
colors: {
  custom: {
    50: '#908ed3',
    500: '#5a62bf',
    950: '#000000',
  },
}
SCSS
$custom: #5a62bf;
$custom-light: #908ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a62bf",
  "rgb": {
    "r": 90,
    "g": 98,
    "b": 191
  },
  "hsl": {
    "h": 235.248,
    "s": 44.105,
    "l": 55.098
  },
  "oklch": {
    "l": 0.53641,
    "c": 0.1435,
    "h": 276.7
  },
  "luminance": 0.14671
}

Semantic roles & 50–950 ramp

primary
#5A62BF
secondary
#D0CCA5
accent
#CA54D4
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83

Preview Lab

Preview with #5A62BF

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

Preview Lab → · Contrast checker → · Palette generator →

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