#4070CC#4070CC

#4070CC is a mid, vivid blue. Relative luminance 0.170; OKLCH L 55.9% C 0.152 H 262.0°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#4070CC
RGBrgb(64, 112, 204)
HSLhsl(219, 58%, 53%)
HSVhsv(219, 69%, 80%)
CMYKcmyk(68.6%, 45.1%, 0%, 20%)
CIE-LABlab(48.31, 14.16, -52.56)
CIE-LCHlch(48.31, 54.43, 285.08°)
OKLaboklab(55.9% -0.0212 -0.1504)
OKLCHoklch(55.9% 0.152 262)
XYZxyz(18.8037, 17.0361, 59.4123)
Luminance0.1704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070CC #CC9C40
analogous
#40B6CC #4070CC #5640CC
triadic
#4070CC #CC4070 #70CC40
tetradic
#4070CC #CC40B6 #CC9C40 #40CC56
square
#4070CC #CC40B6 #CC9C40 #40CC56
split-complementary
#4070CC #CC5640 #B6CC40
monochromatic
#1F3C73 #2C55A3 #4070CC #7094D9 #A1B8E6

Accessibility & contrast

On white

4.76
#4070CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#4070CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4070CC
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070CC#FFFFFF#000000##FFFFFF
##4070CC1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#427ACF
Deuteranopia (green-blind)
#276DCA
Tritanopia (blue-blind)
#008594
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4070cc;
/* rgb */ color: rgb(64, 112, 204);
/* oklch */ color: oklch(55.9% 0.152 262.0);
Tailwind
colors: {
  custom: {
    50: '#8498dc',
    500: '#4070cc',
    950: '#000000',
  },
}
SCSS
$custom: #4070cc;
$custom-light: #8498dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4070cc",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 204
  },
  "hsl": {
    "h": 219.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55899,
    "c": 0.15188,
    "h": 262
  },
  "luminance": 0.17038
}

Semantic roles & 50–950 ramp

primary
#4070CC
secondary
#D2BD95
accent
#AC47E1
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4070CC

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

Preview Lab → · Contrast checker → · Palette generator →

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