#5979F2#5979F2

#5979F2 is a mid, vivid blue. Relative luminance 0.222; OKLCH L 61.5% C 0.185 H 269.2°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5979F2
RGBrgb(89, 121, 242)
HSLhsl(227, 85%, 65%)
HSVhsv(227, 63%, 95%)
CMYKcmyk(63.2%, 50%, 0%, 5.1%)
CIE-LABlab(54.25, 25.81, -64.37)
CIE-LCHlch(54.25, 69.35, 291.85°)
OKLaboklab(61.51% -0.0025 -0.1845)
OKLCHoklch(61.51% 0.185 269.2)
XYZxyz(26.9788, 22.2070, 86.8518)
Luminance0.2221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5979F2 #F2D259
analogous
#59C6F2 #5979F2 #8659F2
triadic
#5979F2 #F25979 #79F259
tetradic
#5979F2 #F259C6 #F2D259 #59F286
square
#5979F2 #F259C6 #F2D259 #59F286
split-complementary
#5979F2 #F28659 #C6F259
monochromatic
#0F34C1 #204BEE #5979F2 #92A7F6 #CBD5FB

Accessibility & contrast

On white

3.86
#5979F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#5979F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5979F2
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5979F2#FFFFFF#000000##000000
##5979F21.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3489F6
Deuteranopia (green-blind)
#007BF0
Tritanopia (blue-blind)
#0095AA
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5979f2;
/* rgb */ color: rgb(89, 121, 242);
/* oklch */ color: oklch(61.5% 0.185 269.2);
Tailwind
colors: {
  custom: {
    50: '#969ff7',
    500: '#5979f2',
    950: '#000000',
  },
}
SCSS
$custom: #5979f2;
$custom-light: #969ff7;
$custom-dark: #000000;
JSON
{
  "hex": "#5979f2",
  "rgb": {
    "r": 89,
    "g": 121,
    "b": 242
  },
  "hsl": {
    "h": 227.451,
    "s": 85.475,
    "l": 64.902
  },
  "oklch": {
    "l": 0.61511,
    "c": 0.18454,
    "h": 269.2
  },
  "luminance": 0.22209
}

Semantic roles & 50–950 ramp

primary
#5979F2
secondary
#EDE3B9
accent
#B304E2
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5979F2

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

Preview Lab → · Contrast checker → · Palette generator →

#5979F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva