#4070B7#4070B7

#4070B7 is a mid, vivid blue. Relative luminance 0.161; OKLCH L 54.6% C 0.123 H 258.1°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#4070B7
RGBrgb(64, 112, 183)
HSLhsl(216, 48%, 48%)
HSVhsv(216, 65%, 72%)
CMYKcmyk(65%, 38.8%, 0%, 28.2%)
CIE-LABlab(47.10, 6.68, -42.39)
CIE-LCHlch(47.10, 42.91, 278.95°)
OKLaboklab(54.58% -0.0254 -0.1205)
OKLCHoklch(54.58% 0.123 258.1)
XYZxyz(16.4527, 16.0956, 47.0303)
Luminance0.1610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070B7 #B78740
analogous
#40ABB7 #4070B7 #4B40B7
triadic
#4070B7 #B74070 #70B740
tetradic
#4070B7 #B740AB #B78740 #40B74B
square
#4070B7 #B740AB #B78740 #40B74B
split-complementary
#4070B7 #B74B40 #ABB740
monochromatic
#20385C #30548A #4070B7 #6991CB #97B2DB

Accessibility & contrast

On white

4.98
#4070B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#4070B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4070B7
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070B7#FFFFFF#000000##FFFFFF
##4070B71.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5176BA
Deuteranopia (green-blind)
#3F6BB6
Tritanopia (blue-blind)
#00808B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4070b7;
/* rgb */ color: rgb(64, 112, 183);
/* oklch */ color: oklch(54.6% 0.123 258.1);
Tailwind
colors: {
  custom: {
    50: '#8198cd',
    500: '#4070b7',
    950: '#000000',
  },
}
SCSS
$custom: #4070b7;
$custom-light: #8198cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4070b7",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 183
  },
  "hsl": {
    "h": 215.798,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54576,
    "c": 0.12319,
    "h": 258.1
  },
  "luminance": 0.16097
}

Semantic roles & 50–950 ramp

primary
#4070B7
secondary
#C6AF8D
accent
#A150D8
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #4070B7

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

Preview Lab → · Contrast checker → · Palette generator →

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