#5F62CD#5F62CD

#5F62CD is a mid, vivid blue. Relative luminance 0.156; OKLCH L 54.9% C 0.162 H 278.4°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5F62CD
RGBrgb(95, 98, 205)
HSLhsl(238, 52%, 59%)
HSVhsv(238, 54%, 80%)
CMYKcmyk(53.7%, 52.2%, 0%, 19.6%)
CIE-LABlab(46.41, 28.89, -56.08)
CIE-LCHlch(46.41, 63.09, 297.25°)
OKLaboklab(54.94% 0.0237 -0.1602)
OKLCHoklch(54.94% 0.162 278.4)
XYZxyz(20.1030, 15.5748, 59.6927)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F62CD #CDCA5F
analogous
#5F99CD #5F62CD #935FCD
triadic
#5F62CD #CD5F62 #62CD5F
tetradic
#5F62CD #CD5F99 #CDCA5F #5FCD93
square
#5F62CD #CD5F99 #CDCA5F #5FCD93
split-complementary
#5F62CD #CD935F #99CD5F
monochromatic
#2A2D87 #393CB6 #5F62CD #8E90DC #BCBEEA

Accessibility & contrast

On white

5.10
#5F62CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#5F62CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F62CD
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F62CD#FFFFFF#000000##FFFFFF
##5F62CD1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2872D1
Deuteranopia (green-blind)
#166ACB
Tritanopia (blue-blind)
#2C7A8E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f62cd;
/* rgb */ color: rgb(95, 98, 205);
/* oklch */ color: oklch(54.9% 0.162 278.4);
Tailwind
colors: {
  custom: {
    50: '#958edd',
    500: '#5f62cd',
    950: '#000000',
  },
}
SCSS
$custom: #5f62cd;
$custom-light: #958edd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f62cd",
  "rgb": {
    "r": 95,
    "g": 98,
    "b": 205
  },
  "hsl": {
    "h": 238.364,
    "s": 52.381,
    "l": 58.824
  },
  "oklch": {
    "l": 0.54943,
    "c": 0.162,
    "h": 278.4
  },
  "luminance": 0.15576
}

Semantic roles & 50–950 ramp

primary
#5F62CD
secondary
#DAD8AE
accent
#D84CDC
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5F62CD

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

Preview Lab → · Contrast checker → · Palette generator →

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