#4072E7#4072E7

#4072E7 is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.2% C 0.186 H 264.1°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#4072E7
RGBrgb(64, 114, 231)
HSLhsl(222, 78%, 58%)
HSVhsv(222, 72%, 91%)
CMYKcmyk(72.3%, 50.6%, 0%, 9.4%)
CIE-LABlab(50.56, 22.64, -64.23)
CIE-LCHlch(50.56, 68.10, 289.41°)
OKLaboklab(58.17% -0.0192 -0.1847)
OKLCHoklch(58.17% 0.186 264.1)
XYZxyz(22.5504, 18.8917, 78.0438)
Luminance0.1889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4072E7 #E7B540
analogous
#40C5E7 #4072E7 #6140E7
triadic
#4072E7 #E74072 #72E740
tetradic
#4072E7 #E740C5 #E7B540 #40E761
square
#4072E7 #E740C5 #E7B540 #40E761
split-complementary
#4072E7 #E76140 #C5E740
monochromatic
#133B99 #1A50D0 #4072E7 #769AEE #ADC2F5

Accessibility & contrast

On white

4.39
#4072E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#4072E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4072E7
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4072E7#FFFFFF#000000##000000
##4072E71.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2880EB
Deuteranopia (green-blind)
#0071E5
Tritanopia (blue-blind)
#008EA2
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4072e7;
/* rgb */ color: rgb(64, 114, 231);
/* oklch */ color: oklch(58.2% 0.186 264.1);
Tailwind
colors: {
  custom: {
    50: '#8999ef',
    500: '#4072e7',
    950: '#000000',
  },
}
SCSS
$custom: #4072e7;
$custom-light: #8999ef;
$custom-dark: #000000;
JSON
{
  "hex": "#4072e7",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 231
  },
  "hsl": {
    "h": 222.036,
    "s": 77.674,
    "l": 57.843
  },
  "oklch": {
    "l": 0.58173,
    "c": 0.18569,
    "h": 264.1
  },
  "luminance": 0.18894
}

Semantic roles & 50–950 ramp

primary
#4072E7
secondary
#E3CFA0
accent
#BB34F4
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0D17
muted
#7E7E85

Preview Lab

Preview with #4072E7

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

Preview Lab → · Contrast checker → · Palette generator →

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