#4070D7#4070D7

#4070D7 is a mid, vivid blue. Relative luminance 0.176; OKLCH L 56.6% C 0.167 H 263.3°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#4070D7
RGBrgb(64, 112, 215)
HSLhsl(221, 65%, 55%)
HSVhsv(221, 70%, 84%)
CMYKcmyk(70.2%, 47.9%, 0%, 15.7%)
CIE-LABlab(48.99, 18.12, -57.73)
CIE-LCHlch(48.99, 60.51, 287.43°)
OKLaboklab(56.64% -0.0195 -0.1656)
OKLCHoklch(56.64% 0.167 263.3)
XYZxyz(20.1699, 17.5825, 66.6076)
Luminance0.1759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070D7 #D7A740
analogous
#40BCD7 #4070D7 #5C40D7
triadic
#4070D7 #D74070 #70D740
tetradic
#4070D7 #D740BC #D7A740 #40D75C
square
#4070D7 #D740BC #D7A740 #40D75C
split-complementary
#4070D7 #D75C40 #BCD740
monochromatic
#1B3C81 #2653B4 #4070D7 #7396E2 #A5BCEC

Accessibility & contrast

On white

4.65
#4070D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#4070D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4070D7
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070D7#FFFFFF#000000##FFFFFF
##4070D71.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#387CDB
Deuteranopia (green-blind)
#0B6ED5
Tritanopia (blue-blind)
#008899
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4070d7;
/* rgb */ color: rgb(64, 112, 215);
/* oklch */ color: oklch(56.6% 0.167 263.3);
Tailwind
colors: {
  custom: {
    50: '#8698e4',
    500: '#4070d7',
    950: '#000000',
  },
}
SCSS
$custom: #4070d7;
$custom-light: #8698e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4070d7",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 215
  },
  "hsl": {
    "h": 220.927,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5664,
    "c": 0.16676,
    "h": 263.3
  },
  "luminance": 0.17585
}

Semantic roles & 50–950 ramp

primary
#4070D7
secondary
#D9C59A
accent
#B33FE8
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0D0D16
muted
#7D7E84

Preview Lab

Preview with #4070D7

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

Preview Lab → · Contrast checker → · Palette generator →

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