#4070C1#4070C1

#4070C1 is a mid, vivid blue. Relative luminance 0.165; OKLCH L 55.2% C 0.137 H 260.2°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#4070C1
RGBrgb(64, 112, 193)
HSLhsl(218, 51%, 50%)
HSVhsv(218, 67%, 76%)
CMYKcmyk(66.8%, 42%, 0%, 24.3%)
CIE-LABlab(47.66, 10.23, -47.28)
CIE-LCHlch(47.66, 48.37, 282.20°)
OKLaboklab(55.19% -0.0232 -0.1349)
OKLCHoklch(55.19% 0.137 260.2)
XYZxyz(17.5307, 16.5269, 52.7079)
Luminance0.1653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070C1 #C19140
analogous
#40B1C1 #4070C1 #5040C1
triadic
#4070C1 #C14070 #70C140
tetradic
#4070C1 #C140B1 #C19140 #40C150
square
#4070C1 #C140B1 #C19140 #40C150
split-complementary
#4070C1 #C15040 #B1C140
monochromatic
#213B66 #305594 #4070C1 #6E93D0 #9CB5DF

Accessibility & contrast

On white

4.88
#4070C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#4070C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4070C1
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070C1#FFFFFF#000000##FFFFFF
##4070C11.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A78C4
Deuteranopia (green-blind)
#366CBF
Tritanopia (blue-blind)
#00838F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4070c1;
/* rgb */ color: rgb(64, 112, 193);
/* oklch */ color: oklch(55.2% 0.137 260.2);
Tailwind
colors: {
  custom: {
    50: '#8298d4',
    500: '#4070c1',
    950: '#000000',
  },
}
SCSS
$custom: #4070c1;
$custom-light: #8298d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4070c1",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 193
  },
  "hsl": {
    "h": 217.674,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55191,
    "c": 0.13687,
    "h": 260.2
  },
  "luminance": 0.16529
}

Semantic roles & 50–950 ramp

primary
#4070C1
secondary
#CBB692
accent
#A64DDA
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #4070C1

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

Preview Lab → · Contrast checker → · Palette generator →

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