#4078C8#4078C8

#4078C8 is a mid, vivid blue. Relative luminance 0.187; OKLCH L 57.4% C 0.137 H 257.6°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#4078C8
RGBrgb(64, 120, 200)
HSLhsl(215, 55%, 52%)
HSVhsv(215, 68%, 78%)
CMYKcmyk(68%, 40%, 0%, 21.6%)
CIE-LABlab(50.32, 7.76, -47.05)
CIE-LCHlch(50.32, 47.69, 279.37°)
OKLaboklab(57.39% -0.0296 -0.1341)
OKLCHoklch(57.39% 0.137 257.6)
XYZxyz(19.2524, 18.6911, 57.2255)
Luminance0.1869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078C8 #C89040
analogous
#40BCC8 #4078C8 #4C40C8
triadic
#4078C8 #C84078 #78C840
tetradic
#4078C8 #C840BC #C89040 #40C84C
square
#4078C8 #C840BC #C89040 #40C84C
split-complementary
#4078C8 #C84C40 #BCC840
monochromatic
#20406E #2D5C9D #4078C8 #709AD6 #9FBBE3

Accessibility & contrast

On white

4.43
#4078C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#4078C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4078C8
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078C8#FFFFFF#000000##000000
##4078C81.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#537FCB
Deuteranopia (green-blind)
#3E72C6
Tritanopia (blue-blind)
#008A96
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4078c8;
/* rgb */ color: rgb(64, 120, 200);
/* oklch */ color: oklch(57.4% 0.137 257.6);
Tailwind
colors: {
  custom: {
    50: '#839ed9',
    500: '#4078c8',
    950: '#000000',
  },
}
SCSS
$custom: #4078c8;
$custom-light: #839ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#4078c8",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 200
  },
  "hsl": {
    "h": 215.294,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.57385,
    "c": 0.13731,
    "h": 257.6
  },
  "luminance": 0.18693
}

Semantic roles & 50–950 ramp

primary
#4078C8
secondary
#D0B794
accent
#A149DF
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4078C8

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

Preview Lab → · Contrast checker → · Palette generator →

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