#5F62DC#5F62DC

#5F62DC is a mid, vivid blue. Relative luminance 0.163; OKLCH L 56.0% C 0.182 H 277.7°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#5F62DC
RGBrgb(95, 98, 220)
HSLhsl(239, 64%, 62%)
HSVhsv(239, 57%, 86%)
CMYKcmyk(56.8%, 55.5%, 0%, 13.7%)
CIE-LABlab(47.41, 33.68, -63.03)
CIE-LCHlch(47.41, 71.47, 298.12°)
OKLaboklab(56.01% 0.0244 -0.1807)
OKLCHoklch(56.01% 0.182 277.7)
XYZxyz(22.0011, 16.3340, 69.6897)
Luminance0.1634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F62DC #DCD95F
analogous
#5FA1DC #5F62DC #9B5FDC
triadic
#5F62DC #DC5F62 #62DC5F
tetradic
#5F62DC #DC5FA1 #DCD95F #5FDC9B
square
#5F62DC #DC5FA1 #DCD95F #5FDC9B
split-complementary
#5F62DC #DC9B5F #A1DC5F
monochromatic
#23269E #2E31D0 #5F62DC #9193E7 #C3C5F2

Accessibility & contrast

On white

4.92
#5F62DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#5F62DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F62DC
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F62DC#FFFFFF#000000##FFFFFF
##5F62DC1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E0
Deuteranopia (green-blind)
#006BD9
Tritanopia (blue-blind)
#137E95
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5f62dc;
/* rgb */ color: rgb(95, 98, 220);
/* oklch */ color: oklch(56.0% 0.182 277.7);
Tailwind
colors: {
  custom: {
    50: '#978ee8',
    500: '#5f62dc',
    950: '#000000',
  },
}
SCSS
$custom: #5f62dc;
$custom-light: #978ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f62dc",
  "rgb": {
    "r": 95,
    "g": 98,
    "b": 220
  },
  "hsl": {
    "h": 238.56,
    "s": 64.103,
    "l": 61.765
  },
  "oklch": {
    "l": 0.56007,
    "c": 0.18233,
    "h": 277.7
  },
  "luminance": 0.16336
}

Semantic roles & 50–950 ramp

primary
#5F62DC
secondary
#E3E1B4
accent
#C81ACC
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5F62DC

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

Preview Lab → · Contrast checker → · Palette generator →

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