#4072E1#4072E1

#4072E1 is a mid, vivid blue. Relative luminance 0.186; OKLCH L 57.7% C 0.178 H 263.6°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#4072E1
RGBrgb(64, 114, 225)
HSLhsl(221, 73%, 57%)
HSVhsv(221, 72%, 88%)
CMYKcmyk(71.6%, 49.3%, 0%, 11.8%)
CIE-LABlab(50.17, 20.47, -61.49)
CIE-LCHlch(50.17, 64.81, 288.42°)
OKLaboklab(57.75% -0.0199 -0.1766)
OKLCHoklch(57.75% 0.178 263.6)
XYZxyz(21.7175, 18.5585, 73.6572)
Luminance0.1856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4072E1 #E1AF40
analogous
#40C3E1 #4072E1 #5E40E1
triadic
#4072E1 #E14072 #72E140
tetradic
#4072E1 #E140C3 #E1AF40 #40E15E
square
#4072E1 #E140C3 #E1AF40 #40E15E
split-complementary
#4072E1 #E15E40 #C3E140
monochromatic
#173C90 #1F52C5 #4072E1 #7599E9 #AAC0F2

Accessibility & contrast

On white

4.46
#4072E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#4072E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4072E1
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4072E1#FFFFFF#000000##000000
##4072E11.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#317FE5
Deuteranopia (green-blind)
#0070DF
Tritanopia (blue-blind)
#008C9F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #4072e1;
/* rgb */ color: rgb(64, 114, 225);
/* oklch */ color: oklch(57.7% 0.178 263.6);
Tailwind
colors: {
  custom: {
    50: '#8899eb',
    500: '#4072e1',
    950: '#000000',
  },
}
SCSS
$custom: #4072e1;
$custom-light: #8899eb;
$custom-dark: #000000;
JSON
{
  "hex": "#4072e1",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 225
  },
  "hsl": {
    "h": 221.366,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57747,
    "c": 0.17775,
    "h": 263.6
  },
  "luminance": 0.18561
}

Semantic roles & 50–950 ramp

primary
#4072E1
secondary
#DFCB9D
accent
#B738F0
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4072E1

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

Preview Lab → · Contrast checker → · Palette generator →

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