#5F78F0#5F78F0

#5F78F0 is a mid, vivid blue. Relative luminance 0.222; OKLCH L 61.5% C 0.181 H 271.3°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#5F78F0
RGBrgb(95, 120, 240)
HSLhsl(230, 83%, 66%)
HSVhsv(230, 60%, 94%)
CMYKcmyk(60.4%, 50%, 0%, 5.9%)
CIE-LABlab(54.19, 26.78, -63.33)
CIE-LCHlch(54.19, 68.76, 292.92°)
OKLaboklab(61.52% 0.0041 -0.1813)
OKLCHoklch(61.52% 0.181 271.3)
XYZxyz(27.1587, 22.1549, 85.2663)
Luminance0.2216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F78F0 #F0D75F
analogous
#5FC0F0 #5F78F0 #8E5FF0
triadic
#5F78F0 #F05F78 #78F05F
tetradic
#5F78F0 #F05FC0 #F0D75F #5FF08E
square
#5F78F0 #F05FC0 #F0D75F #5FF08E
split-complementary
#5F78F0 #F08E5F #C0F05F
monochromatic
#1231C2 #2749EB #5F78F0 #97A7F5 #CFD6FA

Accessibility & contrast

On white

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

On black

5.43
#5F78F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F78F0
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F78F0#FFFFFF#000000##000000
##5F78F01.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3688F4
Deuteranopia (green-blind)
#107BEE
Tritanopia (blue-blind)
#0094A9
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5f78f0;
/* rgb */ color: rgb(95, 120, 240);
/* oklch */ color: oklch(61.5% 0.181 271.3);
Tailwind
colors: {
  custom: {
    50: '#999ef6',
    500: '#5f78f0',
    950: '#000000',
  },
}
SCSS
$custom: #5f78f0;
$custom-light: #999ef6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f78f0",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 240
  },
  "hsl": {
    "h": 229.655,
    "s": 82.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.61516,
    "c": 0.18139,
    "h": 271.3
  },
  "luminance": 0.22157
}

Semantic roles & 50–950 ramp

primary
#5F78F0
secondary
#EEE5BD
accent
#BA06DF
background
#FAF9FF
surface
#F3F2FE
border
#CDCCD6
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F78F0

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

Preview Lab → · Contrast checker → · Palette generator →

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