#5F78EB#5F78EB

#5F78EB is a mid, vivid blue. Relative luminance 0.219; OKLCH L 61.2% C 0.175 H 271.2°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5F78EB
RGBrgb(95, 120, 235)
HSLhsl(229, 78%, 65%)
HSVhsv(229, 60%, 92%)
CMYKcmyk(59.6%, 48.9%, 0%, 7.8%)
CIE-LABlab(53.88, 25.13, -61.04)
CIE-LCHlch(53.88, 66.01, 292.38°)
OKLaboklab(61.18% 0.0036 -0.1746)
OKLCHoklch(61.18% 0.175 271.2)
XYZxyz(26.4262, 21.8619, 81.4083)
Luminance0.2186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F78EB #EBD25F
analogous
#5FBEEB #5F78EB #8C5FEB
triadic
#5F78EB #EB5F78 #78EB5F
tetradic
#5F78EB #EB5FBE #EBD25F #5FEB8C
square
#5F78EB #EB5FBE #EBD25F #5FEB8C
split-complementary
#5F78EB #EB8C5F #BEEB5F
monochromatic
#1734B9 #294AE4 #5F78EB #95A6F2 #CCD4F9

Accessibility & contrast

On white

3.91
#5F78EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#5F78EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F78EB
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F78EB#FFFFFF#000000##000000
##5F78EB1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C87EF
Deuteranopia (green-blind)
#207BE9
Tritanopia (blue-blind)
#0092A6
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5f78eb;
/* rgb */ color: rgb(95, 120, 235);
/* oklch */ color: oklch(61.2% 0.175 271.2);
Tailwind
colors: {
  custom: {
    50: '#989ef2',
    500: '#5f78eb',
    950: '#000000',
  },
}
SCSS
$custom: #5f78eb;
$custom-light: #989ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f78eb",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 229.286,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.61181,
    "c": 0.17465,
    "h": 271.2
  },
  "luminance": 0.21864
}

Semantic roles & 50–950 ramp

primary
#5F78EB
secondary
#EBE2BB
accent
#B50BDA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5F78EB

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

Preview Lab → · Contrast checker → · Palette generator →

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