#5F64CC#5F64CC

#5F64CC is a mid, vivid blue. Relative luminance 0.159; OKLCH L 55.3% C 0.158 H 277.8°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5F64CC
RGBrgb(95, 100, 204)
HSLhsl(237, 52%, 59%)
HSVhsv(237, 53%, 80%)
CMYKcmyk(53.4%, 51%, 0%, 20%)
CIE-LABlab(46.85, 27.34, -54.80)
CIE-LCHlch(46.85, 61.24, 296.51°)
OKLaboklab(55.25% 0.0215 -0.1565)
OKLCHoklch(55.25% 0.158 277.8)
XYZxyz(20.1721, 15.9056, 59.1222)
Luminance0.1591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F64CC #CCC75F
analogous
#5F9ACC #5F64CC #905FCC
triadic
#5F64CC #CC5F64 #64CC5F
tetradic
#5F64CC #CC5F9A #CCC75F #5FCC90
square
#5F64CC #CC5F9A #CCC75F #5FCC90
split-complementary
#5F64CC #CC905F #9ACC5F
monochromatic
#2B2F86 #393FB4 #5F64CC #8D91DB #BCBEEA

Accessibility & contrast

On white

5.02
#5F64CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5F64CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F64CC
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F64CC#FFFFFF#000000##FFFFFF
##5F64CC1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E74D0
Deuteranopia (green-blind)
#1F6BCA
Tritanopia (blue-blind)
#2D7B8E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5f64cc;
/* rgb */ color: rgb(95, 100, 204);
/* oklch */ color: oklch(55.3% 0.158 277.8);
Tailwind
colors: {
  custom: {
    50: '#9490dc',
    500: '#5f64cc',
    950: '#000000',
  },
}
SCSS
$custom: #5f64cc;
$custom-light: #9490dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f64cc",
  "rgb": {
    "r": 95,
    "g": 100,
    "b": 204
  },
  "hsl": {
    "h": 237.248,
    "s": 51.659,
    "l": 58.627
  },
  "oklch": {
    "l": 0.55252,
    "c": 0.15794,
    "h": 277.8
  },
  "luminance": 0.15907
}

Semantic roles & 50–950 ramp

primary
#5F64CC
secondary
#D9D7AE
accent
#D54DDB
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5F64CC

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

Preview Lab → · Contrast checker → · Palette generator →

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