#5F78DF#5F78DF

#5F78DF is a mid, vivid blue. Relative luminance 0.212; OKLCH L 60.4% C 0.158 H 270.8°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#5F78DF
RGBrgb(95, 120, 223)
HSLhsl(228, 67%, 62%)
HSVhsv(228, 57%, 87%)
CMYKcmyk(57.4%, 46.2%, 0%, 12.5%)
CIE-LABlab(53.16, 21.19, -55.47)
CIE-LCHlch(53.16, 59.38, 290.91°)
OKLaboklab(60.4% 0.0021 -0.1582)
OKLCHoklch(60.4% 0.158 270.8)
XYZxyz(24.7507, 21.1916, 72.5839)
Luminance0.2119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F78DF #DFC65F
analogous
#5FB8DF #5F78DF #865FDF
triadic
#5F78DF #DF5F78 #78DF5F
tetradic
#5F78DF #DF5FB8 #DFC65F #5FDF86
square
#5F78DF #DF5FB8 #DFC65F #5FDF86
split-complementary
#5F78DF #DF865F #B8DF5F
monochromatic
#213AA3 #2C4DD5 #5F78DF #92A3E9 #C5CEF3

Accessibility & contrast

On white

4.01
#5F78DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#5F78DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F78DF
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F78DF#FFFFFF#000000##000000
##5F78DF1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4885E3
Deuteranopia (green-blind)
#357ADD
Tritanopia (blue-blind)
#008FA1
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5f78df;
/* rgb */ color: rgb(95, 120, 223);
/* oklch */ color: oklch(60.4% 0.158 270.8);
Tailwind
colors: {
  custom: {
    50: '#969ee9',
    500: '#5f78df',
    950: '#000000',
  },
}
SCSS
$custom: #5f78df;
$custom-light: #969ee9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f78df",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 223
  },
  "hsl": {
    "h": 228.281,
    "s": 66.667,
    "l": 62.353
  },
  "oklch": {
    "l": 0.60401,
    "c": 0.15826,
    "h": 270.8
  },
  "luminance": 0.21194
}

Semantic roles & 50–950 ramp

primary
#5F78DF
secondary
#E4DBB6
accent
#AB17CF
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5F78DF

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

Preview Lab → · Contrast checker → · Palette generator →

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