#4070C2#4070C2

#4070C2 is a mid, vivid blue. Relative luminance 0.166; OKLCH L 55.3% C 0.138 H 260.4°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#4070C2
RGBrgb(64, 112, 194)
HSLhsl(218, 52%, 51%)
HSVhsv(218, 67%, 76%)
CMYKcmyk(67%, 42.3%, 0%, 23.9%)
CIE-LABlab(47.72, 10.58, -47.77)
CIE-LCHlch(47.72, 48.92, 282.49°)
OKLaboklab(55.25% -0.023 -0.1363)
OKLCHoklch(55.25% 0.138 260.4)
XYZxyz(17.6427, 16.5716, 53.2973)
Luminance0.1657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070C2 #C29240
analogous
#40B1C2 #4070C2 #5140C2
triadic
#4070C2 #C24070 #70C240
tetradic
#4070C2 #C240B1 #C29240 #40C251
square
#4070C2 #C240B1 #C29240 #40C251
split-complementary
#4070C2 #C25140 #B1C240
monochromatic
#213B67 #305595 #4070C2 #6E93D1 #9DB5E0

Accessibility & contrast

On white

4.87
#4070C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4070C2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070C2#FFFFFF#000000##FFFFFF
##4070C21.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A78C5
Deuteranopia (green-blind)
#356CC0
Tritanopia (blue-blind)
#00838F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4070c2;
/* rgb */ color: rgb(64, 112, 194);
/* oklch */ color: oklch(55.3% 0.138 260.4);
Tailwind
colors: {
  custom: {
    50: '#8298d5',
    500: '#4070c2',
    950: '#000000',
  },
}
SCSS
$custom: #4070c2;
$custom-light: #8298d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4070c2",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 194
  },
  "hsl": {
    "h": 217.846,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.55254,
    "c": 0.13823,
    "h": 260.4
  },
  "luminance": 0.16573
}

Semantic roles & 50–950 ramp

primary
#4070C2
secondary
#CCB692
accent
#A74DDB
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #4070C2

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

Preview Lab → · Contrast checker → · Palette generator →

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