#5F76E2#5F76E2

#5F76E2 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.2% C 0.165 H 271.6°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#5F76E2
RGBrgb(95, 118, 226)
HSLhsl(229, 69%, 63%)
HSVhsv(229, 58%, 89%)
CMYKcmyk(58%, 47.8%, 0%, 11.4%)
CIE-LABlab(52.82, 23.40, -57.71)
CIE-LCHlch(52.82, 62.27, 292.07°)
OKLaboklab(60.2% 0.0046 -0.1648)
OKLCHoklch(60.2% 0.165 271.6)
XYZxyz(24.9207, 20.8788, 74.6535)
Luminance0.2088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F76E2 #E2CB5F
analogous
#5FB7E2 #5F76E2 #8A5FE2
triadic
#5F76E2 #E25F76 #76E25F
tetradic
#5F76E2 #E25FB7 #E2CB5F #5FE28A
square
#5F76E2 #E25FB7 #E2CB5F #5FE28A
split-complementary
#5F76E2 #E28A5F #B7E25F
monochromatic
#1E37A8 #2B4AD9 #5F76E2 #93A2EB #C7CFF5

Accessibility & contrast

On white

4.06
#5F76E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#5F76E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F76E2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F76E2#FFFFFF#000000##000000
##5F76E21.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4184E6
Deuteranopia (green-blind)
#2B79E0
Tritanopia (blue-blind)
#008EA1
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f76e2;
/* rgb */ color: rgb(95, 118, 226);
/* oklch */ color: oklch(60.2% 0.165 271.6);
Tailwind
colors: {
  custom: {
    50: '#979dec',
    500: '#5f76e2',
    950: '#000000',
  },
}
SCSS
$custom: #5f76e2;
$custom-light: #979dec;
$custom-dark: #000000;
JSON
{
  "hex": "#5f76e2",
  "rgb": {
    "r": 95,
    "g": 118,
    "b": 226
  },
  "hsl": {
    "h": 229.466,
    "s": 69.312,
    "l": 62.941
  },
  "oklch": {
    "l": 0.60198,
    "c": 0.1649,
    "h": 271.6
  },
  "luminance": 0.20881
}

Semantic roles & 50–950 ramp

primary
#5F76E2
secondary
#E6DEB7
accent
#B014D1
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5F76E2

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

Preview Lab → · Contrast checker → · Palette generator →

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