#4078DF#4078DF

#4078DF is a mid, vivid blue. Relative luminance 0.199; OKLCH L 58.9% C 0.168 H 261.4°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#4078DF
RGBrgb(64, 120, 223)
HSLhsl(219, 71%, 56%)
HSVhsv(219, 71%, 87%)
CMYKcmyk(71.3%, 46.2%, 0%, 12.5%)
CIE-LABlab(51.67, 16.01, -57.95)
CIE-LCHlch(51.67, 60.12, 285.44°)
OKLaboklab(58.85% -0.0252 -0.1661)
OKLCHoklch(58.85% 0.168 261.4)
XYZxyz(22.1453, 19.8483, 72.4617)
Luminance0.1985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078DF #DFA740
analogous
#40C8DF #4078DF #5840DF
triadic
#4078DF #DF4078 #78DF40
tetradic
#4078DF #DF40C8 #DFA740 #40DF58
square
#4078DF #DF40C8 #DFA740 #40DF58
split-complementary
#4078DF #DF5840 #C8DF40
monochromatic
#18418D #2059C1 #4078DF #749DE8 #A9C2F1

Accessibility & contrast

On white

4.23
#4078DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#4078DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4078DF
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078DF#FFFFFF#000000##000000
##4078DF1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4283E3
Deuteranopia (green-blind)
#1D74DD
Tritanopia (blue-blind)
#0090A1
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4078df;
/* rgb */ color: rgb(64, 120, 223);
/* oklch */ color: oklch(58.9% 0.168 261.4);
Tailwind
colors: {
  custom: {
    50: '#889eea',
    500: '#4078df',
    950: '#000000',
  },
}
SCSS
$custom: #4078df;
$custom-light: #889eea;
$custom-dark: #000000;
JSON
{
  "hex": "#4078df",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 223
  },
  "hsl": {
    "h": 218.868,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.58854,
    "c": 0.16802,
    "h": 261.4
  },
  "luminance": 0.19851
}

Semantic roles & 50–950 ramp

primary
#4078DF
secondary
#DEC79D
accent
#AF3AEE
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #4078DF

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

Preview Lab → · Contrast checker → · Palette generator →

#4078DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva