#4070D8#4070D8

#4070D8 is a mid, vivid blue. Relative luminance 0.176; OKLCH L 56.7% C 0.168 H 263.4°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#4070D8
RGBrgb(64, 112, 216)
HSLhsl(221, 66%, 55%)
HSVhsv(221, 70%, 85%)
CMYKcmyk(70.4%, 48.1%, 0%, 15.3%)
CIE-LABlab(49.05, 18.48, -58.20)
CIE-LCHlch(49.05, 61.06, 287.62°)
OKLaboklab(56.71% -0.0194 -0.167)
OKLCHoklch(56.71% 0.168 263.4)
XYZxyz(20.2988, 17.6341, 67.2864)
Luminance0.1764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070D8 #D8A840
analogous
#40BCD8 #4070D8 #5C40D8
triadic
#4070D8 #D84070 #70D840
tetradic
#4070D8 #D840BC #D8A840 #40D85C
square
#4070D8 #D840BC #D8A840 #40D85C
split-complementary
#4070D8 #D85C40 #BCD840
monochromatic
#1B3C83 #2553B6 #4070D8 #7396E2 #A6BCED

Accessibility & contrast

On white

4.64
#4070D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#4070D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4070D8
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070D8#FFFFFF#000000##FFFFFF
##4070D81.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#377CDC
Deuteranopia (green-blind)
#066ED6
Tritanopia (blue-blind)
#00889A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4070d8;
/* rgb */ color: rgb(64, 112, 216);
/* oklch */ color: oklch(56.7% 0.168 263.4);
Tailwind
colors: {
  custom: {
    50: '#8798e5',
    500: '#4070d8',
    950: '#000000',
  },
}
SCSS
$custom: #4070d8;
$custom-light: #8798e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4070d8",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 216
  },
  "hsl": {
    "h": 221.053,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.56709,
    "c": 0.1681,
    "h": 263.4
  },
  "luminance": 0.17636
}

Semantic roles & 50–950 ramp

primary
#4070D8
secondary
#DAC69A
accent
#B33FE9
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0D0D16
muted
#7D7E84

Preview Lab

Preview with #4070D8

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

Preview Lab → · Contrast checker → · Palette generator →

#4070D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva