#4070E1#4070E1

#4070E1 is a mid, vivid blue. Relative luminance 0.181; OKLCH L 57.3% C 0.180 H 264.2°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#4070E1
RGBrgb(64, 112, 225)
HSLhsl(222, 73%, 57%)
HSVhsv(222, 72%, 88%)
CMYKcmyk(71.6%, 50.2%, 0%, 11.8%)
CIE-LABlab(49.63, 21.73, -62.35)
CIE-LCHlch(49.63, 66.03, 289.21°)
OKLaboklab(57.34% -0.0183 -0.1792)
OKLCHoklch(57.34% 0.18 264.2)
XYZxyz(21.4943, 18.1123, 73.5828)
Luminance0.1812 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070E1 #E1B140
analogous
#40C1E1 #4070E1 #6140E1
triadic
#4070E1 #E14070 #70E140
tetradic
#4070E1 #E140C1 #E1B140 #40E161
square
#4070E1 #E140C1 #E1B140 #40E161
split-complementary
#4070E1 #E16140 #C1E140
monochromatic
#173B90 #1F50C5 #4070E1 #7598E9 #AABFF2

Accessibility & contrast

On white

4.54
#4070E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#4070E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4070E1
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070E1#FFFFFF#000000##000000
##4070E11.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B7EE5
Deuteranopia (green-blind)
#006FDF
Tritanopia (blue-blind)
#008B9E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #4070e1;
/* rgb */ color: rgb(64, 112, 225);
/* oklch */ color: oklch(57.3% 0.180 264.2);
Tailwind
colors: {
  custom: {
    50: '#8898eb',
    500: '#4070e1',
    950: '#000000',
  },
}
SCSS
$custom: #4070e1;
$custom-light: #8898eb;
$custom-dark: #000000;
JSON
{
  "hex": "#4070e1",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 225
  },
  "hsl": {
    "h": 222.112,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.5734,
    "c": 0.18013,
    "h": 264.2
  },
  "luminance": 0.18115
}

Semantic roles & 50–950 ramp

primary
#4070E1
secondary
#DFCC9D
accent
#B938F0
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4070E1

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

Preview Lab → · Contrast checker → · Palette generator →

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