#5F62DB#5F62DB

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

Color values

HEX#5F62DB
RGBrgb(95, 98, 219)
HSLhsl(239, 63%, 62%)
HSVhsv(239, 57%, 86%)
CMYKcmyk(56.6%, 55.3%, 0%, 14.1%)
CIE-LABlab(47.34, 33.36, -62.57)
CIE-LCHlch(47.34, 70.91, 298.06°)
OKLaboklab(55.93% 0.0244 -0.1793)
OKLCHoklch(55.93% 0.181 277.7)
XYZxyz(21.8691, 16.2812, 68.9943)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F62DB #DBD85F
analogous
#5FA0DB #5F62DB #9A5FDB
triadic
#5F62DB #DB5F62 #62DB5F
tetradic
#5F62DB #DB5FA0 #DBD85F #5FDB9A
square
#5F62DB #DB5FA0 #DBD85F #5FDB9A
split-complementary
#5F62DB #DB9A5F #A0DB5F
monochromatic
#23269C #2E32CE #5F62DB #9193E6 #C3C4F1

Accessibility & contrast

On white

4.93
#5F62DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#5F62DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F62DB
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F62DB#FFFFFF#000000##FFFFFF
##5F62DB1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0375DF
Deuteranopia (green-blind)
#006BD8
Tritanopia (blue-blind)
#157E95
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5f62db;
/* rgb */ color: rgb(95, 98, 219);
/* oklch */ color: oklch(55.9% 0.181 277.7);
Tailwind
colors: {
  custom: {
    50: '#978ee7',
    500: '#5f62db',
    950: '#000000',
  },
}
SCSS
$custom: #5f62db;
$custom-light: #978ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f62db",
  "rgb": {
    "r": 95,
    "g": 98,
    "b": 219
  },
  "hsl": {
    "h": 238.548,
    "s": 63.265,
    "l": 61.569
  },
  "oklch": {
    "l": 0.55934,
    "c": 0.181,
    "h": 277.7
  },
  "luminance": 0.16283
}

Semantic roles & 50–950 ramp

primary
#5F62DB
secondary
#E2E1B4
accent
#C71ACB
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5F62DB

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

Preview Lab → · Contrast checker → · Palette generator →

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