#4072CB#4072CB

#4072CB is a mid, vivid blue. Relative luminance 0.174; OKLCH L 56.3% C 0.148 H 261.0°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#4072CB
RGBrgb(64, 114, 203)
HSLhsl(218, 57%, 52%)
HSVhsv(218, 68%, 80%)
CMYKcmyk(68.5%, 43.8%, 0%, 20.4%)
CIE-LABlab(48.80, 12.55, -51.19)
CIE-LCHlch(48.80, 52.71, 283.78°)
OKLaboklab(56.26% -0.0232 -0.1463)
OKLCHoklch(56.26% 0.148 261)
XYZxyz(18.9073, 17.4345, 58.8571)
Luminance0.1744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4072CB #CB9940
analogous
#40B8CB #4072CB #5340CB
triadic
#4072CB #CB4072 #72CB40
tetradic
#4072CB #CB40B8 #CB9940 #40CB53
square
#4072CB #CB40B8 #CB9940 #40CB53
split-complementary
#4072CB #CB5340 #B8CB40
monochromatic
#1F3D72 #2C56A2 #4072CB #7096D8 #A0B9E5

Accessibility & contrast

On white

4.68
#4072CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#4072CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4072CB
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4072CB#FFFFFF#000000##FFFFFF
##4072CB1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#477BCE
Deuteranopia (green-blind)
#2E6EC9
Tritanopia (blue-blind)
#008794
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4072cb;
/* rgb */ color: rgb(64, 114, 203);
/* oklch */ color: oklch(56.3% 0.148 261.0);
Tailwind
colors: {
  custom: {
    50: '#849adb',
    500: '#4072cb',
    950: '#000000',
  },
}
SCSS
$custom: #4072cb;
$custom-light: #849adb;
$custom-dark: #000000;
JSON
{
  "hex": "#4072cb",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 203
  },
  "hsl": {
    "h": 218.417,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.56263,
    "c": 0.14817,
    "h": 261
  },
  "luminance": 0.17436
}

Semantic roles & 50–950 ramp

primary
#4072CB
secondary
#D2BC95
accent
#A947E0
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4072CB

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

Preview Lab → · Contrast checker → · Palette generator →

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