#4070CD#4070CD

#4070CD is a mid, vivid blue. Relative luminance 0.171; OKLCH L 56.0% C 0.153 H 262.1°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#4070CD
RGBrgb(64, 112, 205)
HSLhsl(220, 59%, 53%)
HSVhsv(220, 69%, 80%)
CMYKcmyk(68.8%, 45.4%, 0%, 19.6%)
CIE-LABlab(48.37, 14.52, -53.03)
CIE-LCHlch(48.37, 54.99, 285.32°)
OKLaboklab(55.97% -0.021 -0.1518)
OKLCHoklch(55.97% 0.153 262.1)
XYZxyz(18.9241, 17.0842, 60.0460)
Luminance0.1709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070CD #CD9D40
analogous
#40B7CD #4070CD #5640CD
triadic
#4070CD #CD4070 #70CD40
tetradic
#4070CD #CD40B7 #CD9D40 #40CD56
square
#4070CD #CD40B7 #CD9D40 #40CD56
split-complementary
#4070CD #CD5640 #B7CD40
monochromatic
#1E3C74 #2B55A5 #4070CD #7194DA #A1B9E6

Accessibility & contrast

On white

4.75
#4070CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#4070CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4070CD
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070CD#FFFFFF#000000##FFFFFF
##4070CD1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#417AD1
Deuteranopia (green-blind)
#266DCB
Tritanopia (blue-blind)
#008694
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4070cd;
/* rgb */ color: rgb(64, 112, 205);
/* oklch */ color: oklch(56.0% 0.153 262.1);
Tailwind
colors: {
  custom: {
    50: '#8498dd',
    500: '#4070cd',
    950: '#000000',
  },
}
SCSS
$custom: #4070cd;
$custom-light: #8498dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4070cd",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 205
  },
  "hsl": {
    "h": 219.574,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55965,
    "c": 0.15324,
    "h": 262.1
  },
  "luminance": 0.17086
}

Semantic roles & 50–950 ramp

primary
#4070CD
secondary
#D3BE96
accent
#AD46E2
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4070CD

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

Preview Lab → · Contrast checker → · Palette generator →

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