#5F78DC#5F78DC

#5F78DC is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.2% C 0.154 H 270.6°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#5F78DC
RGBrgb(95, 120, 220)
HSLhsl(228, 64%, 62%)
HSVhsv(228, 57%, 86%)
CMYKcmyk(56.8%, 45.5%, 0%, 13.7%)
CIE-LABlab(52.98, 20.21, -54.06)
CIE-LCHlch(52.98, 57.72, 290.50°)
OKLaboklab(60.21% 0.0017 -0.1541)
OKLCHoklch(60.21% 0.154 270.6)
XYZxyz(24.3498, 21.0313, 70.4726)
Luminance0.2103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F78DC #DCC35F
analogous
#5FB7DC #5F78DC #855FDC
triadic
#5F78DC #DC5F78 #78DC5F
tetradic
#5F78DC #DC5FB7 #DCC35F #5FDC85
square
#5F78DC #DC5FB7 #DCC35F #5FDC85
split-complementary
#5F78DC #DC855F #B7DC5F
monochromatic
#233B9E #2E4ED0 #5F78DC #91A2E7 #C3CDF2

Accessibility & contrast

On white

4.03
#5F78DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#5F78DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F78DC
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F78DC#FFFFFF#000000##000000
##5F78DC1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A84E0
Deuteranopia (green-blind)
#3979DA
Tritanopia (blue-blind)
#048E9F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f78dc;
/* rgb */ color: rgb(95, 120, 220);
/* oklch */ color: oklch(60.2% 0.154 270.6);
Tailwind
colors: {
  custom: {
    50: '#969ee7',
    500: '#5f78dc',
    950: '#000000',
  },
}
SCSS
$custom: #5f78dc;
$custom-light: #969ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f78dc",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 220
  },
  "hsl": {
    "h": 228,
    "s": 64.103,
    "l": 61.765
  },
  "oklch": {
    "l": 0.60211,
    "c": 0.15412,
    "h": 270.6
  },
  "luminance": 0.21033
}

Semantic roles & 50–950 ramp

primary
#5F78DC
secondary
#E3D9B4
accent
#A81ACC
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5F78DC

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

Preview Lab → · Contrast checker → · Palette generator →

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