#5A62CF#5A62CF

#5A62CF is a mid, vivid blue. Relative luminance 0.154; OKLCH L 54.7% C 0.166 H 276.3°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5A62CF
RGBrgb(90, 98, 207)
HSLhsl(236, 55%, 58%)
HSVhsv(236, 57%, 81%)
CMYKcmyk(56.5%, 52.7%, 0%, 18.8%)
CIE-LABlab(46.19, 28.54, -57.60)
CIE-LCHlch(46.19, 64.28, 296.36°)
OKLaboklab(54.73% 0.0182 -0.1648)
OKLCHoklch(54.73% 0.166 276.3)
XYZxyz(19.8430, 15.4126, 60.9487)
Luminance0.1541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A62CF #CFC75A
analogous
#5A9DCF #5A62CF #8C5ACF
triadic
#5A62CF #CF5A62 #62CF5A
tetradic
#5A62CF #CF5A9D #CFC75A #5ACF8C
square
#5A62CF #CF5A9D #CFC75A #5ACF8C
split-complementary
#5A62CF #CF8C5A #9DCF5A
monochromatic
#272E87 #353EB7 #5A62CF #898FDD #B9BCEB

Accessibility & contrast

On white

5.14
#5A62CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#5A62CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A62CF
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A62CF#FFFFFF#000000##FFFFFF
##5A62CF1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2272D3
Deuteranopia (green-blind)
#0169CD
Tritanopia (blue-blind)
#157B8F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a62cf;
/* rgb */ color: rgb(90, 98, 207);
/* oklch */ color: oklch(54.7% 0.166 276.3);
Tailwind
colors: {
  custom: {
    50: '#928ede',
    500: '#5a62cf',
    950: '#000000',
  },
}
SCSS
$custom: #5a62cf;
$custom-light: #928ede;
$custom-dark: #000000;
JSON
{
  "hex": "#5a62cf",
  "rgb": {
    "r": 90,
    "g": 98,
    "b": 207
  },
  "hsl": {
    "h": 235.897,
    "s": 54.93,
    "l": 58.235
  },
  "oklch": {
    "l": 0.54732,
    "c": 0.16583,
    "h": 276.3
  },
  "luminance": 0.15414
}

Semantic roles & 50–950 ramp

primary
#5A62CF
secondary
#DAD7AB
accent
#D44ADE
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5A62CF

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

Preview Lab → · Contrast checker → · Palette generator →

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