#5F62BA#5F62BA

#5F62BA is a mid, vivid blue. Relative luminance 0.147; OKLCH L 53.7% C 0.135 H 279.3°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5F62BA
RGBrgb(95, 98, 186)
HSLhsl(238, 40%, 55%)
HSVhsv(238, 49%, 73%)
CMYKcmyk(48.9%, 47.3%, 0%, 27.1%)
CIE-LABlab(45.24, 22.89, -46.99)
CIE-LCHlch(45.24, 52.27, 295.98°)
OKLaboklab(53.68% 0.0219 -0.1335)
OKLCHoklch(53.68% 0.135 279.3)
XYZxyz(17.9472, 14.7125, 48.3390)
Luminance0.1471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F62BA #BAB75F
analogous
#5F8FBA #5F62BA #895FBA
triadic
#5F62BA #BA5F62 #62BA5F
tetradic
#5F62BA #BA5F8F #BAB75F #5FBA89
square
#5F62BA #BA5F8F #BAB75F #5FBA89
split-complementary
#5F62BA #BA895F #8FBA5F
monochromatic
#30326F #42459A #5F62BA #8A8CCC #B5B6DF

Accessibility & contrast

On white

5.33
#5F62BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#5F62BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F62BA
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F62BA#FFFFFF#000000##FFFFFF
##5F62BA1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6FBD
Deuteranopia (green-blind)
#3568B8
Tritanopia (blue-blind)
#3D7585
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f62ba;
/* rgb */ color: rgb(95, 98, 186);
/* oklch */ color: oklch(53.7% 0.135 279.3);
Tailwind
colors: {
  custom: {
    50: '#928ecf',
    500: '#5f62ba',
    950: '#000000',
  },
}
SCSS
$custom: #5f62ba;
$custom-light: #928ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f62ba",
  "rgb": {
    "r": 95,
    "g": 98,
    "b": 186
  },
  "hsl": {
    "h": 238.022,
    "s": 39.738,
    "l": 55.098
  },
  "oklch": {
    "l": 0.53681,
    "c": 0.13532,
    "h": 279.3
  },
  "luminance": 0.14713
}

Semantic roles & 50–950 ramp

primary
#5F62BA
secondary
#CDCCA7
accent
#CC58D0
background
#F9F8FC
surface
#F2F0F9
border
#CCCBD2
text
#0D0C14
muted
#7E7D82

Preview Lab

Preview with #5F62BA

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

Preview Lab → · Contrast checker → · Palette generator →

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