#4078D4#4078D4

#4078D4 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.1% C 0.153 H 259.8°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#4078D4
RGBrgb(64, 120, 212)
HSLhsl(217, 63%, 54%)
HSVhsv(217, 70%, 83%)
CMYKcmyk(69.8%, 43.4%, 0%, 16.9%)
CIE-LABlab(51.01, 12.05, -52.79)
CIE-LCHlch(51.01, 54.15, 282.86°)
OKLaboklab(58.13% -0.0271 -0.1509)
OKLCHoklch(58.13% 0.153 259.8)
XYZxyz(20.7102, 19.2742, 64.9034)
Luminance0.1928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078D4 #D49C40
analogous
#40C2D4 #4078D4 #5240D4
triadic
#4078D4 #D44078 #78D440
tetradic
#4078D4 #D440C2 #D49C40 #40D452
square
#4078D4 #D440C2 #D49C40 #40D452
split-complementary
#4078D4 #D45240 #C2D440
monochromatic
#1C417D #275BAF #4078D4 #729BDF #A4BFEA

Accessibility & contrast

On white

4.33
#4078D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#4078D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4078D4
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078D4#FFFFFF#000000##000000
##4078D41.004.334.864.86
#FFFFFF4.331.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B81D8
Deuteranopia (green-blind)
#3173D2
Tritanopia (blue-blind)
#008D9C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4078d4;
/* rgb */ color: rgb(64, 120, 212);
/* oklch */ color: oklch(58.1% 0.153 259.8);
Tailwind
colors: {
  custom: {
    50: '#869ee2',
    500: '#4078d4',
    950: '#000000',
  },
}
SCSS
$custom: #4078d4;
$custom-light: #869ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#4078d4",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 212
  },
  "hsl": {
    "h": 217.297,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.58134,
    "c": 0.15336,
    "h": 259.8
  },
  "luminance": 0.19276
}

Semantic roles & 50–950 ramp

primary
#4078D4
secondary
#D7C098
accent
#A842E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4078D4

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

Preview Lab → · Contrast checker → · Palette generator →

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