#5A62CB#5A62CB

#5A62CB is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.5% C 0.160 H 276.4°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#5A62CB
RGBrgb(90, 98, 203)
HSLhsl(236, 52%, 57%)
HSVhsv(236, 56%, 80%)
CMYKcmyk(55.7%, 51.7%, 0%, 20.4%)
CIE-LABlab(45.93, 27.24, -55.72)
CIE-LCHlch(45.93, 62.02, 296.05°)
OKLaboklab(54.45% 0.0179 -0.1593)
OKLCHoklch(54.45% 0.16 276.4)
XYZxyz(19.3602, 15.2195, 58.4058)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A62CB #CBC35A
analogous
#5A9BCB #5A62CB #8A5ACB
triadic
#5A62CB #CB5A62 #62CB5A
tetradic
#5A62CB #CB5A9B #CBC35A #5ACB8A
square
#5A62CB #CB5A9B #CBC35A #5ACB8A
split-complementary
#5A62CB #CB8A5A #9BCB5A
monochromatic
#292F82 #3840B0 #5A62CB #898EDA #B7BBE8

Accessibility & contrast

On white

5.19
#5A62CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#5A62CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A62CB
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A62CB#FFFFFF#000000##FFFFFF
##5A62CB1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2972CF
Deuteranopia (green-blind)
#1368C9
Tritanopia (blue-blind)
#1D7A8D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a62cb;
/* rgb */ color: rgb(90, 98, 203);
/* oklch */ color: oklch(54.5% 0.160 276.4);
Tailwind
colors: {
  custom: {
    50: '#918edb',
    500: '#5a62cb',
    950: '#000000',
  },
}
SCSS
$custom: #5a62cb;
$custom-light: #918edb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a62cb",
  "rgb": {
    "r": 90,
    "g": 98,
    "b": 203
  },
  "hsl": {
    "h": 235.752,
    "s": 52.074,
    "l": 57.451
  },
  "oklch": {
    "l": 0.54453,
    "c": 0.16032,
    "h": 276.4
  },
  "luminance": 0.15221
}

Semantic roles & 50–950 ramp

primary
#5A62CB
secondary
#D7D4AA
accent
#D14CDC
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5A62CB

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

Preview Lab → · Contrast checker → · Palette generator →

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