#4078DD#4078DD

#4078DD is a mid, vivid blue. Relative luminance 0.197; OKLCH L 58.7% C 0.165 H 261.1°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#4078DD
RGBrgb(64, 120, 221)
HSLhsl(219, 70%, 56%)
HSVhsv(219, 71%, 87%)
CMYKcmyk(71%, 45.7%, 0%, 13.3%)
CIE-LABlab(51.54, 15.29, -57.02)
CIE-LCHlch(51.54, 59.03, 285.01°)
OKLaboklab(58.72% -0.0255 -0.1634)
OKLCHoklch(58.72% 0.165 261.1)
XYZxyz(21.8773, 19.7411, 71.0500)
Luminance0.1974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078DD #DDA540
analogous
#40C6DD #4078DD #5640DD
triadic
#4078DD #DD4078 #78DD40
tetradic
#4078DD #DD40C6 #DDA540 #40DD56
square
#4078DD #DD40C6 #DDA540 #40DD56
split-complementary
#4078DD #DD5640 #C6DD40
monochromatic
#19418A #225ABE #4078DD #749DE6 #A8C1EF

Accessibility & contrast

On white

4.24
#4078DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#4078DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4078DD
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078DD#FFFFFF#000000##000000
##4078DD1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4483E1
Deuteranopia (green-blind)
#2274DB
Tritanopia (blue-blind)
#0090A0
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4078dd;
/* rgb */ color: rgb(64, 120, 221);
/* oklch */ color: oklch(58.7% 0.165 261.1);
Tailwind
colors: {
  custom: {
    50: '#879ee8',
    500: '#4078dd',
    950: '#000000',
  },
}
SCSS
$custom: #4078dd;
$custom-light: #879ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#4078dd",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 221
  },
  "hsl": {
    "h": 218.599,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58721,
    "c": 0.16537,
    "h": 261.1
  },
  "luminance": 0.19743
}

Semantic roles & 50–950 ramp

primary
#4078DD
secondary
#DDC69C
accent
#AD3BED
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #4078DD

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

Preview Lab → · Contrast checker → · Palette generator →

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