#4072E3#4072E3

#4072E3 is a mid, vivid blue. Relative luminance 0.187; OKLCH L 57.9% C 0.180 H 263.7°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#4072E3
RGBrgb(64, 114, 227)
HSLhsl(222, 74%, 57%)
HSVhsv(222, 72%, 89%)
CMYKcmyk(71.8%, 49.8%, 0%, 11%)
CIE-LABlab(50.30, 21.20, -62.41)
CIE-LCHlch(50.30, 65.91, 288.76°)
OKLaboklab(57.89% -0.0197 -0.1793)
OKLCHoklch(57.89% 0.18 263.7)
XYZxyz(21.9919, 18.6683, 75.1025)
Luminance0.1867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4072E3 #E3B140
analogous
#40C4E3 #4072E3 #6040E3
triadic
#4072E3 #E34072 #72E340
tetradic
#4072E3 #E340C4 #E3B140 #40E360
square
#4072E3 #E340C4 #E3B140 #40E360
split-complementary
#4072E3 #E36040 #C4E340
monochromatic
#163C93 #1D52C8 #4072E3 #7599EB #ABC1F3

Accessibility & contrast

On white

4.44
#4072E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#4072E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4072E3
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4072E3#FFFFFF#000000##000000
##4072E31.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E80E7
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#008DA0
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4072e3;
/* rgb */ color: rgb(64, 114, 227);
/* oklch */ color: oklch(57.9% 0.180 263.7);
Tailwind
colors: {
  custom: {
    50: '#8999ec',
    500: '#4072e3',
    950: '#000000',
  },
}
SCSS
$custom: #4072e3;
$custom-light: #8999ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4072e3",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 227
  },
  "hsl": {
    "h": 221.595,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57888,
    "c": 0.18039,
    "h": 263.7
  },
  "luminance": 0.18671
}

Semantic roles & 50–950 ramp

primary
#4072E3
secondary
#E1CC9E
accent
#B837F1
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4072E3

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

Preview Lab → · Contrast checker → · Palette generator →

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