#5979F3#5979F3

#5979F3 is a mid, vivid blue. Relative luminance 0.223; OKLCH L 61.6% C 0.186 H 269.3°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5979F3
RGBrgb(89, 121, 243)
HSLhsl(228, 87%, 65%)
HSVhsv(228, 63%, 95%)
CMYKcmyk(63.4%, 50.2%, 0%, 4.7%)
CIE-LABlab(54.31, 26.15, -64.82)
CIE-LCHlch(54.31, 69.90, 291.97°)
OKLaboklab(61.58% -0.0024 -0.1859)
OKLCHoklch(61.58% 0.186 269.3)
XYZxyz(27.1294, 22.2672, 87.6450)
Luminance0.2227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5979F3 #F3D359
analogous
#59C6F3 #5979F3 #8659F3
triadic
#5979F3 #F35979 #79F359
tetradic
#5979F3 #F359C6 #F3D359 #59F386
square
#5979F3 #F359C6 #F3D359 #59F386
split-complementary
#5979F3 #F38659 #C6F359
monochromatic
#0E34C3 #204BEF #5979F3 #92A7F7 #CBD5FB

Accessibility & contrast

On white

3.85
#5979F3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#5979F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5979F3
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5979F3#FFFFFF#000000##000000
##5979F31.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3389F7
Deuteranopia (green-blind)
#007BF0
Tritanopia (blue-blind)
#0095AB
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5979f3;
/* rgb */ color: rgb(89, 121, 243);
/* oklch */ color: oklch(61.6% 0.186 269.3);
Tailwind
colors: {
  custom: {
    50: '#969ff8',
    500: '#5979f3',
    950: '#000000',
  },
}
SCSS
$custom: #5979f3;
$custom-light: #969ff8;
$custom-dark: #000000;
JSON
{
  "hex": "#5979f3",
  "rgb": {
    "r": 89,
    "g": 121,
    "b": 243
  },
  "hsl": {
    "h": 227.532,
    "s": 86.517,
    "l": 65.098
  },
  "oklch": {
    "l": 0.61579,
    "c": 0.18588,
    "h": 269.3
  },
  "luminance": 0.2227
}

Semantic roles & 50–950 ramp

primary
#5979F3
secondary
#EEE3BA
accent
#B402E3
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5979F3

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

Preview Lab → · Contrast checker → · Palette generator →

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