#4078E8#4078E8

#4078E8 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.5% C 0.180 H 262.4°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#4078E8
RGBrgb(64, 120, 232)
HSLhsl(220, 79%, 58%)
HSVhsv(220, 72%, 91%)
CMYKcmyk(72.4%, 48.3%, 0%, 9%)
CIE-LABlab(52.23, 19.25, -62.10)
CIE-LCHlch(52.23, 65.02, 287.22°)
OKLaboklab(59.47% -0.0239 -0.1783)
OKLCHoklch(59.47% 0.18 262.4)
XYZxyz(23.3911, 20.3466, 79.0228)
Luminance0.2035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078E8 #E8B040
analogous
#40CCE8 #4078E8 #5C40E8
triadic
#4078E8 #E84078 #78E840
tetradic
#4078E8 #E840CC #E8B040 #40E85C
square
#4078E8 #E840CC #E8B040 #40E85C
split-complementary
#4078E8 #E85C40 #CCE840
monochromatic
#13409B #1957D2 #4078E8 #779FEF #ADC5F5

Accessibility & contrast

On white

4.14
#4078E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#4078E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4078E8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078E8#FFFFFF#000000##000000
##4078E81.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3885EC
Deuteranopia (green-blind)
#0075E6
Tritanopia (blue-blind)
#0093A5
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #4078e8;
/* rgb */ color: rgb(64, 120, 232);
/* oklch */ color: oklch(59.5% 0.180 262.4);
Tailwind
colors: {
  custom: {
    50: '#899ef0',
    500: '#4078e8',
    950: '#000000',
  },
}
SCSS
$custom: #4078e8;
$custom-light: #899ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#4078e8",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 232
  },
  "hsl": {
    "h": 220,
    "s": 78.505,
    "l": 58.039
  },
  "oklch": {
    "l": 0.59465,
    "c": 0.17993,
    "h": 262.4
  },
  "luminance": 0.20349
}

Semantic roles & 50–950 ramp

primary
#4078E8
secondary
#E3CDA0
accent
#B433F5
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0E17
muted
#7E7E85

Preview Lab

Preview with #4078E8

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

Preview Lab → · Contrast checker → · Palette generator →

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