#5F79DC#5F79DC

#5F79DC is a mid, vivid blue. Relative luminance 0.213; OKLCH L 60.4% C 0.153 H 270.2°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5F79DC
RGBrgb(95, 121, 220)
HSLhsl(228, 64%, 62%)
HSVhsv(228, 57%, 86%)
CMYKcmyk(56.8%, 45%, 0%, 13.7%)
CIE-LABlab(53.25, 19.60, -53.64)
CIE-LCHlch(53.25, 57.11, 290.07°)
OKLaboklab(60.41% 0.0006 -0.1529)
OKLCHoklch(60.41% 0.153 270.2)
XYZxyz(24.4707, 21.2731, 70.5129)
Luminance0.2127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F79DC #DCC25F
analogous
#5FB8DC #5F79DC #845FDC
triadic
#5F79DC #DC5F79 #79DC5F
tetradic
#5F79DC #DC5FB8 #DCC25F #5FDC84
square
#5F79DC #DC5FB8 #DCC25F #5FDC84
split-complementary
#5F79DC #DC845F #B8DC5F
monochromatic
#233C9E #2E4FD0 #5F79DC #91A3E7 #C3CDF2

Accessibility & contrast

On white

4.00
#5F79DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#5F79DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F79DC
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F79DC#FFFFFF#000000##000000
##5F79DC1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C85E0
Deuteranopia (green-blind)
#3B7ADA
Tritanopia (blue-blind)
#038FA0
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5f79dc;
/* rgb */ color: rgb(95, 121, 220);
/* oklch */ color: oklch(60.4% 0.153 270.2);
Tailwind
colors: {
  custom: {
    50: '#969fe7',
    500: '#5f79dc',
    950: '#000000',
  },
}
SCSS
$custom: #5f79dc;
$custom-light: #969fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f79dc",
  "rgb": {
    "r": 95,
    "g": 121,
    "b": 220
  },
  "hsl": {
    "h": 227.52,
    "s": 64.103,
    "l": 61.765
  },
  "oklch": {
    "l": 0.60412,
    "c": 0.15286,
    "h": 270.2
  },
  "luminance": 0.21275
}

Semantic roles & 50–950 ramp

primary
#5F79DC
secondary
#E3D9B4
accent
#A71ACC
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5F79DC

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

Preview Lab → · Contrast checker → · Palette generator →

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