#4078D7#4078D7

#4078D7 is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.3% C 0.157 H 260.3°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#4078D7
RGBrgb(64, 120, 215)
HSLhsl(218, 65%, 55%)
HSVhsv(218, 70%, 84%)
CMYKcmyk(70.2%, 44.2%, 0%, 15.7%)
CIE-LABlab(51.18, 13.13, -54.21)
CIE-LCHlch(51.18, 55.77, 283.62°)
OKLaboklab(58.33% -0.0266 -0.1551)
OKLCHoklch(58.33% 0.157 260.3)
XYZxyz(21.0922, 19.4270, 66.9150)
Luminance0.1943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078D7 #D79F40
analogous
#40C4D7 #4078D7 #5340D7
triadic
#4078D7 #D74078 #78D740
tetradic
#4078D7 #D740C4 #D79F40 #40D753
square
#4078D7 #D740C4 #D79F40 #40D753
split-complementary
#4078D7 #D75340 #C4D740
monochromatic
#1B4181 #265BB4 #4078D7 #739CE2 #A5C0EC

Accessibility & contrast

On white

4.30
#4078D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#4078D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4078D7
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078D7#FFFFFF#000000##000000
##4078D71.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4981DB
Deuteranopia (green-blind)
#2C73D5
Tritanopia (blue-blind)
#008E9D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #4078d7;
/* rgb */ color: rgb(64, 120, 215);
/* oklch */ color: oklch(58.3% 0.157 260.3);
Tailwind
colors: {
  custom: {
    50: '#869ee4',
    500: '#4078d7',
    950: '#000000',
  },
}
SCSS
$custom: #4078d7;
$custom-light: #869ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#4078d7",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 215
  },
  "hsl": {
    "h": 217.748,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.58328,
    "c": 0.15737,
    "h": 260.3
  },
  "luminance": 0.19429
}

Semantic roles & 50–950 ramp

primary
#4078D7
secondary
#D9C29A
accent
#AA3FE8
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0D0E15
muted
#7D7E84

Preview Lab

Preview with #4078D7

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

Preview Lab → · Contrast checker → · Palette generator →

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