#4078CC#4078CC

#4078CC is a mid, vivid blue. Relative luminance 0.189; OKLCH L 57.6% C 0.143 H 258.4°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#4078CC
RGBrgb(64, 120, 204)
HSLhsl(216, 58%, 53%)
HSVhsv(216, 69%, 80%)
CMYKcmyk(68.6%, 41.2%, 0%, 20%)
CIE-LABlab(50.55, 9.19, -48.98)
CIE-LCHlch(50.55, 49.83, 280.63°)
OKLaboklab(57.63% -0.0287 -0.1397)
OKLCHoklch(57.63% 0.143 258.4)
XYZxyz(19.7260, 18.8805, 59.7198)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078CC #CC9440
analogous
#40BECC #4078CC #4E40CC
triadic
#4078CC #CC4078 #78CC40
tetradic
#4078CC #CC40BE #CC9440 #40CC4E
square
#4078CC #CC40BE #CC9440 #40CC4E
split-complementary
#4078CC #CC4E40 #BECC40
monochromatic
#1F4073 #2C5BA3 #4078CC #709AD9 #A1BCE6

Accessibility & contrast

On white

4.40
#4078CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#4078CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4078CC
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078CC#FFFFFF#000000##000000
##4078CC1.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#517FCF
Deuteranopia (green-blind)
#3A72CA
Tritanopia (blue-blind)
#008B98
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4078cc;
/* rgb */ color: rgb(64, 120, 204);
/* oklch */ color: oklch(57.6% 0.143 258.4);
Tailwind
colors: {
  custom: {
    50: '#849edc',
    500: '#4078cc',
    950: '#000000',
  },
}
SCSS
$custom: #4078cc;
$custom-light: #849edc;
$custom-dark: #000000;
JSON
{
  "hex": "#4078cc",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 204
  },
  "hsl": {
    "h": 216,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.5763,
    "c": 0.14266,
    "h": 258.4
  },
  "luminance": 0.18883
}

Semantic roles & 50–950 ramp

primary
#4078CC
secondary
#D2BA95
accent
#A347E1
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4078CC

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

Preview Lab → · Contrast checker → · Palette generator →

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