#4078C7#4078C7

#4078C7 is a mid, vivid blue. Relative luminance 0.186; OKLCH L 57.3% C 0.136 H 257.3°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#4078C7
RGBrgb(64, 120, 199)
HSLhsl(215, 55%, 52%)
HSVhsv(215, 68%, 78%)
CMYKcmyk(67.8%, 39.7%, 0%, 22%)
CIE-LABlab(50.27, 7.41, -46.57)
CIE-LCHlch(50.27, 47.15, 279.04°)
OKLaboklab(57.32% -0.0298 -0.1327)
OKLCHoklch(57.32% 0.136 257.3)
XYZxyz(19.1359, 18.6445, 56.6120)
Luminance0.1865 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078C7 #C78F40
analogous
#40BCC7 #4078C7 #4C40C7
triadic
#4078C7 #C74078 #78C740
tetradic
#4078C7 #C740BC #C78F40 #40C74C
square
#4078C7 #C740BC #C78F40 #40C74C
split-complementary
#4078C7 #C74C40 #BCC740
monochromatic
#20406D #2E5C9C #4078C7 #6F99D5 #9FBBE3

Accessibility & contrast

On white

4.44
#4078C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#4078C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4078C7
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078C7#FFFFFF#000000##000000
##4078C71.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#547ECA
Deuteranopia (green-blind)
#3F72C5
Tritanopia (blue-blind)
#008A96
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4078c7;
/* rgb */ color: rgb(64, 120, 199);
/* oklch */ color: oklch(57.3% 0.136 257.3);
Tailwind
colors: {
  custom: {
    50: '#839ed8',
    500: '#4078c7',
    950: '#000000',
  },
}
SCSS
$custom: #4078c7;
$custom-light: #839ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#4078c7",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 199
  },
  "hsl": {
    "h": 215.111,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.57324,
    "c": 0.13597,
    "h": 257.3
  },
  "luminance": 0.18646
}

Semantic roles & 50–950 ramp

primary
#4078C7
secondary
#CFB694
accent
#A14ADE
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #4078C7

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

Preview Lab → · Contrast checker → · Palette generator →

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