#4070BC#4070BC

#4070BC is a mid, vivid blue. Relative luminance 0.163; OKLCH L 54.9% C 0.130 H 259.2°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#4070BC
RGBrgb(64, 112, 188)
HSLhsl(217, 49%, 49%)
HSVhsv(217, 66%, 74%)
CMYKcmyk(66%, 40.4%, 0%, 26.3%)
CIE-LABlab(47.38, 8.45, -44.85)
CIE-LCHlch(47.38, 45.64, 280.67°)
OKLaboklab(54.88% -0.0243 -0.1277)
OKLCHoklch(54.88% 0.13 259.2)
XYZxyz(16.9824, 16.3075, 49.8199)
Luminance0.1631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070BC #BC8C40
analogous
#40AEBC #4070BC #4E40BC
triadic
#4070BC #BC4070 #70BC40
tetradic
#4070BC #BC40AE #BC8C40 #40BC4E
square
#4070BC #BC40AE #BC8C40 #40BC4E
split-complementary
#4070BC #BC4E40 #AEBC40
monochromatic
#213A61 #30558E #4070BC #6C92CD #9AB4DD

Accessibility & contrast

On white

4.93
#4070BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#4070BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4070BC
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070BC#FFFFFF#000000##FFFFFF
##4070BC1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E77BF
Deuteranopia (green-blind)
#3B6BBA
Tritanopia (blue-blind)
#00818D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4070bc;
/* rgb */ color: rgb(64, 112, 188);
/* oklch */ color: oklch(54.9% 0.130 259.2);
Tailwind
colors: {
  custom: {
    50: '#8198d0',
    500: '#4070bc',
    950: '#000000',
  },
}
SCSS
$custom: #4070bc;
$custom-light: #8198d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4070bc",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 188
  },
  "hsl": {
    "h": 216.774,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.5488,
    "c": 0.13003,
    "h": 259.2
  },
  "luminance": 0.16309
}

Semantic roles & 50–950 ramp

primary
#4070BC
secondary
#C9B28F
accent
#A34FD9
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #4070BC

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

Preview Lab → · Contrast checker → · Palette generator →

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