#4072CC#4072CC

#4072CC is a mid, vivid blue. Relative luminance 0.175; OKLCH L 56.3% C 0.150 H 261.1°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#4072CC
RGBrgb(64, 114, 204)
HSLhsl(219, 58%, 53%)
HSVhsv(219, 69%, 80%)
CMYKcmyk(68.6%, 44.1%, 0%, 20%)
CIE-LABlab(48.86, 12.91, -51.67)
CIE-LCHlch(48.86, 53.26, 284.03°)
OKLaboklab(56.33% -0.0231 -0.1477)
OKLCHoklch(56.33% 0.15 261.1)
XYZxyz(19.0269, 17.4823, 59.4867)
Luminance0.1748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4072CC #CC9A40
analogous
#40B8CC #4072CC #5440CC
triadic
#4072CC #CC4072 #72CC40
tetradic
#4072CC #CC40B8 #CC9A40 #40CC54
square
#4072CC #CC40B8 #CC9A40 #40CC54
split-complementary
#4072CC #CC5440 #B8CC40
monochromatic
#1F3D73 #2C56A3 #4072CC #7096D9 #A1B9E6

Accessibility & contrast

On white

4.67
#4072CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#4072CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4072CC
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4072CC#FFFFFF#000000##FFFFFF
##4072CC1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#467BCF
Deuteranopia (green-blind)
#2D6ECA
Tritanopia (blue-blind)
#008795
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4072cc;
/* rgb */ color: rgb(64, 114, 204);
/* oklch */ color: oklch(56.3% 0.150 261.1);
Tailwind
colors: {
  custom: {
    50: '#849adc',
    500: '#4072cc',
    950: '#000000',
  },
}
SCSS
$custom: #4072cc;
$custom-light: #849adc;
$custom-dark: #000000;
JSON
{
  "hex": "#4072cc",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 204
  },
  "hsl": {
    "h": 218.571,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.56328,
    "c": 0.14953,
    "h": 261.1
  },
  "luminance": 0.17484
}

Semantic roles & 50–950 ramp

primary
#4072CC
secondary
#D2BD95
accent
#AA47E1
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4072CC

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

Preview Lab → · Contrast checker → · Palette generator →

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