#5F78F4#5F78F4

#5F78F4 is a mid, vivid blue. Relative luminance 0.224; OKLCH L 61.8% C 0.187 H 271.4°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5F78F4
RGBrgb(95, 120, 244)
HSLhsl(230, 87%, 66%)
HSVhsv(230, 61%, 96%)
CMYKcmyk(61.1%, 50.8%, 0%, 4.3%)
CIE-LABlab(54.44, 28.10, -65.14)
CIE-LCHlch(54.44, 70.95, 293.33°)
OKLaboklab(61.79% 0.0044 -0.1867)
OKLCHoklch(61.79% 0.187 271.4)
XYZxyz(27.7595, 22.3952, 88.4302)
Luminance0.2240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F78F4 #F4DB5F
analogous
#5FC3F4 #5F78F4 #915FF4
triadic
#5F78F4 #F45F78 #78F45F
tetradic
#5F78F4 #F45FC3 #F4DB5F #5FF491
square
#5F78F4 #F45FC3 #F4DB5F #5FF491
split-complementary
#5F78F4 #F4915F #C3F45F
monochromatic
#0E2ECB #2648F0 #5F78F4 #98A8F8 #D2D9FC

Accessibility & contrast

On white

3.83
#5F78F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#5F78F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F78F4
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F78F4#FFFFFF#000000##000000
##5F78F41.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3089F8
Deuteranopia (green-blind)
#007CF1
Tritanopia (blue-blind)
#0095AB
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5f78f4;
/* rgb */ color: rgb(95, 120, 244);
/* oklch */ color: oklch(61.8% 0.187 271.4);
Tailwind
colors: {
  custom: {
    50: '#999ef8',
    500: '#5f78f4',
    950: '#000000',
  },
}
SCSS
$custom: #5f78f4;
$custom-light: #999ef8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f78f4",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 244
  },
  "hsl": {
    "h": 229.933,
    "s": 87.135,
    "l": 66.471
  },
  "oklch": {
    "l": 0.61788,
    "c": 0.18674,
    "h": 271.4
  },
  "luminance": 0.22397
}

Semantic roles & 50–950 ramp

primary
#5F78F4
secondary
#F0E7BF
accent
#BE02E4
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F78F4

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

Preview Lab → · Contrast checker → · Palette generator →

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