#5A62DB#5A62DB

#5A62DB is a mid, vivid blue. Relative luminance 0.160; OKLCH L 55.6% C 0.182 H 275.9°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5A62DB
RGBrgb(90, 98, 219)
HSLhsl(236, 64%, 61%)
HSVhsv(236, 59%, 86%)
CMYKcmyk(58.9%, 55.3%, 0%, 14.1%)
CIE-LABlab(47.00, 32.45, -63.14)
CIE-LCHlch(47.00, 70.99, 297.20°)
OKLaboklab(55.6% 0.0187 -0.1811)
OKLCHoklch(55.6% 0.182 275.9)
XYZxyz(21.3662, 16.0219, 68.9707)
Luminance0.1602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A62DB #DBD35A
analogous
#5AA2DB #5A62DB #925ADB
triadic
#5A62DB #DB5A62 #62DB5A
tetradic
#5A62DB #DB5AA2 #DBD35A #5ADB92
square
#5A62DB #DB5AA2 #DBD35A #5ADB92
split-complementary
#5A62DB #DB925A #A2DB5A
monochromatic
#212999 #2C36CB #5A62DB #8C92E6 #BEC2F1

Accessibility & contrast

On white

4.99
#5A62DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#5A62DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A62DB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A62DB#FFFFFF#000000##FFFFFF
##5A62DB1.004.994.204.99
#FFFFFF4.991.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075DF
Deuteranopia (green-blind)
#006AD9
Tritanopia (blue-blind)
#007E95
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a62db;
/* rgb */ color: rgb(90, 98, 219);
/* oklch */ color: oklch(55.6% 0.182 275.9);
Tailwind
colors: {
  custom: {
    50: '#948ee7',
    500: '#5a62db',
    950: '#000000',
  },
}
SCSS
$custom: #5a62db;
$custom-light: #948ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a62db",
  "rgb": {
    "r": 90,
    "g": 98,
    "b": 219
  },
  "hsl": {
    "h": 236.279,
    "s": 64.179,
    "l": 60.588
  },
  "oklch": {
    "l": 0.55595,
    "c": 0.1821,
    "h": 275.9
  },
  "luminance": 0.16023
}

Semantic roles & 50–950 ramp

primary
#5A62DB
secondary
#E1DEB0
accent
#C11ACC
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5A62DB

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

Preview Lab → · Contrast checker → · Palette generator →

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