#5F79E7#5F79E7

#5F79E7 is a mid, vivid blue. Relative luminance 0.219; OKLCH L 61.1% C 0.168 H 270.7°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5F79E7
RGBrgb(95, 121, 231)
HSLhsl(229, 74%, 64%)
HSVhsv(229, 59%, 91%)
CMYKcmyk(58.9%, 47.6%, 0%, 9.4%)
CIE-LABlab(53.89, 23.21, -58.78)
CIE-LCHlch(53.89, 63.20, 291.54°)
OKLaboklab(61.11% 0.0021 -0.168)
OKLCHoklch(61.11% 0.168 270.7)
XYZxyz(25.9757, 21.8751, 78.4393)
Luminance0.2188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F79E7 #E7CD5F
analogous
#5FBDE7 #5F79E7 #895FE7
triadic
#5F79E7 #E75F79 #79E75F
tetradic
#5F79E7 #E75FBD #E7CD5F #5FE789
square
#5F79E7 #E75FBD #E7CD5F #5FE789
split-complementary
#5F79E7 #E7895F #BDE75F
monochromatic
#1B37B1 #2A4CDF #5F79E7 #94A6EF #C9D2F7

Accessibility & contrast

On white

3.91
#5F79E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#5F79E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F79E7
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F79E7#FFFFFF#000000##000000
##5F79E71.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4287EB
Deuteranopia (green-blind)
#2B7BE5
Tritanopia (blue-blind)
#0092A5
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5f79e7;
/* rgb */ color: rgb(95, 121, 231);
/* oklch */ color: oklch(61.1% 0.168 270.7);
Tailwind
colors: {
  custom: {
    50: '#979fef',
    500: '#5f79e7',
    950: '#000000',
  },
}
SCSS
$custom: #5f79e7;
$custom-light: #979fef;
$custom-dark: #000000;
JSON
{
  "hex": "#5f79e7",
  "rgb": {
    "r": 95,
    "g": 121,
    "b": 231
  },
  "hsl": {
    "h": 228.529,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61114,
    "c": 0.16797,
    "h": 270.7
  },
  "luminance": 0.21877
}

Semantic roles & 50–950 ramp

primary
#5F79E7
secondary
#E9E0B9
accent
#B00FD6
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E16
muted
#7E7E84

Preview Lab

Preview with #5F79E7

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

Preview Lab → · Contrast checker → · Palette generator →

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