#5F78E7#5F78E7

#5F78E7 is a mid, vivid blue. Relative luminance 0.216; OKLCH L 60.9% C 0.169 H 271.1°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5F78E7
RGBrgb(95, 120, 231)
HSLhsl(229, 74%, 64%)
HSVhsv(229, 59%, 91%)
CMYKcmyk(58.9%, 48.1%, 0%, 9.4%)
CIE-LABlab(53.64, 23.82, -59.20)
CIE-LCHlch(53.64, 63.81, 291.92°)
OKLaboklab(60.92% 0.0031 -0.1692)
OKLCHoklch(60.92% 0.169 271.1)
XYZxyz(25.8548, 21.6333, 78.3990)
Luminance0.2163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F78E7 #E7CE5F
analogous
#5FBCE7 #5F78E7 #8A5FE7
triadic
#5F78E7 #E75F78 #78E75F
tetradic
#5F78E7 #E75FBC #E7CE5F #5FE78A
square
#5F78E7 #E75FBC #E7CE5F #5FE78A
split-complementary
#5F78E7 #E78A5F #BCE75F
monochromatic
#1B36B1 #2A4BDF #5F78E7 #94A5EF #C9D2F7

Accessibility & contrast

On white

3.94
#5F78E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#5F78E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F78E7
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F78E7#FFFFFF#000000##000000
##5F78E71.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4086EB
Deuteranopia (green-blind)
#287AE5
Tritanopia (blue-blind)
#0091A4
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f78e7;
/* rgb */ color: rgb(95, 120, 231);
/* oklch */ color: oklch(60.9% 0.169 271.1);
Tailwind
colors: {
  custom: {
    50: '#979eef',
    500: '#5f78e7',
    950: '#000000',
  },
}
SCSS
$custom: #5f78e7;
$custom-light: #979eef;
$custom-dark: #000000;
JSON
{
  "hex": "#5f78e7",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 231
  },
  "hsl": {
    "h": 228.971,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.60917,
    "c": 0.16922,
    "h": 271.1
  },
  "luminance": 0.21635
}

Semantic roles & 50–950 ramp

primary
#5F78E7
secondary
#E9E0B9
accent
#B20FD6
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E16
muted
#7E7E84

Preview Lab

Preview with #5F78E7

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

Preview Lab → · Contrast checker → · Palette generator →

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