#5F79E9#5F79E9

#5F79E9 is a mid, vivid blue. Relative luminance 0.220; OKLCH L 61.2% C 0.171 H 270.8°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#5F79E9
RGBrgb(95, 121, 233)
HSLhsl(229, 76%, 64%)
HSVhsv(229, 59%, 91%)
CMYKcmyk(59.2%, 48.1%, 0%, 8.6%)
CIE-LABlab(54.02, 23.86, -59.71)
CIE-LCHlch(54.02, 64.30, 291.79°)
OKLaboklab(61.24% 0.0024 -0.1707)
OKLCHoklch(61.24% 0.171 270.8)
XYZxyz(26.2598, 21.9887, 79.9354)
Luminance0.2199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F79E9 #E9CF5F
analogous
#5FBEE9 #5F79E9 #8A5FE9
triadic
#5F79E9 #E95F79 #79E95F
tetradic
#5F79E9 #E95FBE #E9CF5F #5FE98A
square
#5F79E9 #E95FBE #E9CF5F #5FE98A
split-complementary
#5F79E9 #E98A5F #BEE95F
monochromatic
#1936B5 #294CE2 #5F79E9 #95A6F0 #CBD3F8

Accessibility & contrast

On white

3.89
#5F79E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#5F79E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F79E9
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F79E9#FFFFFF#000000##000000
##5F79E91.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4088ED
Deuteranopia (green-blind)
#287BE7
Tritanopia (blue-blind)
#0092A6
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5f79e9;
/* rgb */ color: rgb(95, 121, 233);
/* oklch */ color: oklch(61.2% 0.171 270.8);
Tailwind
colors: {
  custom: {
    50: '#989ff1',
    500: '#5f79e9',
    950: '#000000',
  },
}
SCSS
$custom: #5f79e9;
$custom-light: #989ff1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f79e9",
  "rgb": {
    "r": 95,
    "g": 121,
    "b": 233
  },
  "hsl": {
    "h": 228.696,
    "s": 75.824,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61244,
    "c": 0.1707,
    "h": 270.8
  },
  "luminance": 0.21991
}

Semantic roles & 50–950 ramp

primary
#5F79E9
secondary
#EAE1BA
accent
#B20DD8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5F79E9

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

Preview Lab → · Contrast checker → · Palette generator →

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