#4078D1#4078D1

#4078D1 is a mid, vivid blue. Relative luminance 0.191; OKLCH L 57.9% C 0.149 H 259.3°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#4078D1
RGBrgb(64, 120, 209)
HSLhsl(217, 61%, 54%)
HSVhsv(217, 69%, 82%)
CMYKcmyk(69.4%, 42.6%, 0%, 18%)
CIE-LABlab(50.83, 10.98, -51.37)
CIE-LCHlch(50.83, 52.53, 282.06°)
OKLaboklab(57.94% -0.0277 -0.1468)
OKLCHoklch(57.94% 0.149 259.3)
XYZxyz(20.3353, 19.1243, 62.9289)
Luminance0.1913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078D1 #D19940
analogous
#40C0D1 #4078D1 #5040D1
triadic
#4078D1 #D14078 #78D140
tetradic
#4078D1 #D140C0 #D19940 #40D150
square
#4078D1 #D140C0 #D19940 #40D150
split-complementary
#4078D1 #D15040 #C0D140
monochromatic
#1D4179 #295BAB #4078D1 #719BDD #A3BEE9

Accessibility & contrast

On white

4.35
#4078D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#4078D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4078D1
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078D1#FFFFFF#000000##000000
##4078D11.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D80D4
Deuteranopia (green-blind)
#3573CF
Tritanopia (blue-blind)
#008D9A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4078d1;
/* rgb */ color: rgb(64, 120, 209);
/* oklch */ color: oklch(57.9% 0.149 259.3);
Tailwind
colors: {
  custom: {
    50: '#859edf',
    500: '#4078d1',
    950: '#000000',
  },
}
SCSS
$custom: #4078d1;
$custom-light: #859edf;
$custom-dark: #000000;
JSON
{
  "hex": "#4078d1",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 209
  },
  "hsl": {
    "h": 216.828,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.57943,
    "c": 0.14935,
    "h": 259.3
  },
  "luminance": 0.19126
}

Semantic roles & 50–950 ramp

primary
#4078D1
secondary
#D5BD97
accent
#A644E4
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4078D1

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

Preview Lab → · Contrast checker → · Palette generator →

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