#4070C7#4070C7

#4070C7 is a mid, vivid blue. Relative luminance 0.168; OKLCH L 55.6% C 0.145 H 261.2°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#4070C7
RGBrgb(64, 112, 199)
HSLhsl(219, 55%, 52%)
HSVhsv(219, 68%, 78%)
CMYKcmyk(67.8%, 43.7%, 0%, 22%)
CIE-LABlab(48.01, 12.37, -50.17)
CIE-LCHlch(48.01, 51.68, 283.85°)
OKLaboklab(55.57% -0.0221 -0.1434)
OKLCHoklch(55.57% 0.145 261.2)
XYZxyz(18.2137, 16.8000, 56.3046)
Luminance0.1680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070C7 #C79740
analogous
#40B3C7 #4070C7 #5440C7
triadic
#4070C7 #C74070 #70C740
tetradic
#4070C7 #C740B3 #C79740 #40C754
square
#4070C7 #C740B3 #C79740 #40C754
split-complementary
#4070C7 #C75440 #B3C740
monochromatic
#203B6D #2E559C #4070C7 #6F93D5 #9FB7E3

Accessibility & contrast

On white

4.82
#4070C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#4070C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4070C7
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070C7#FFFFFF#000000##FFFFFF
##4070C71.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4679CA
Deuteranopia (green-blind)
#2F6CC5
Tritanopia (blue-blind)
#008492
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4070c7;
/* rgb */ color: rgb(64, 112, 199);
/* oklch */ color: oklch(55.6% 0.145 261.2);
Tailwind
colors: {
  custom: {
    50: '#8398d8',
    500: '#4070c7',
    950: '#000000',
  },
}
SCSS
$custom: #4070c7;
$custom-light: #8398d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4070c7",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 199
  },
  "hsl": {
    "h": 218.667,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55573,
    "c": 0.14507,
    "h": 261.2
  },
  "luminance": 0.16802
}

Semantic roles & 50–950 ramp

primary
#4070C7
secondary
#CFBA94
accent
#A94ADE
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #4070C7

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

Preview Lab → · Contrast checker → · Palette generator →

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