#5F78EF#5F78EF

#5F78EF is a mid, vivid blue. Relative luminance 0.221; OKLCH L 61.4% C 0.180 H 271.3°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#5F78EF
RGBrgb(95, 120, 239)
HSLhsl(230, 82%, 65%)
HSVhsv(230, 60%, 94%)
CMYKcmyk(60.3%, 49.8%, 0%, 6.3%)
CIE-LABlab(54.13, 26.45, -62.87)
CIE-LCHlch(54.13, 68.21, 292.82°)
OKLaboklab(61.45% 0.004 -0.18)
OKLCHoklch(61.45% 0.18 271.3)
XYZxyz(27.0106, 22.0956, 84.4861)
Luminance0.2210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F78EF #EFD65F
analogous
#5FC0EF #5F78EF #8E5FEF
triadic
#5F78EF #EF5F78 #78EF5F
tetradic
#5F78EF #EF5FC0 #EFD65F #5FEF8E
square
#5F78EF #EF5FC0 #EFD65F #5FEF8E
split-complementary
#5F78EF #EF8E5F #C0EF5F
monochromatic
#1331C0 #2749E9 #5F78EF #97A7F5 #CED6FA

Accessibility & contrast

On white

3.87
#5F78EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#5F78EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F78EF
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F78EF#FFFFFF#000000##000000
##5F78EF1.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3788F3
Deuteranopia (green-blind)
#147BED
Tritanopia (blue-blind)
#0093A8
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5f78ef;
/* rgb */ color: rgb(95, 120, 239);
/* oklch */ color: oklch(61.4% 0.180 271.3);
Tailwind
colors: {
  custom: {
    50: '#999ef5',
    500: '#5f78ef',
    950: '#000000',
  },
}
SCSS
$custom: #5f78ef;
$custom-light: #999ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f78ef",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 229.583,
    "s": 81.818,
    "l": 65.49
  },
  "oklch": {
    "l": 0.61449,
    "c": 0.18004,
    "h": 271.3
  },
  "luminance": 0.22098
}

Semantic roles & 50–950 ramp

primary
#5F78EF
secondary
#EDE5BD
accent
#B907DE
background
#FAF9FF
surface
#F3F2FE
border
#CDCCD6
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F78EF

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

Preview Lab → · Contrast checker → · Palette generator →

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