#4072BE#4072BE

#4072BE is a mid, vivid blue. Relative luminance 0.168; OKLCH L 55.4% C 0.131 H 258.6°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#4072BE
RGBrgb(64, 114, 190)
HSLhsl(216, 50%, 50%)
HSVhsv(216, 66%, 75%)
CMYKcmyk(66.3%, 40%, 0%, 25.5%)
CIE-LABlab(48.06, 7.91, -44.91)
CIE-LCHlch(48.06, 45.61, 279.99°)
OKLaboklab(55.45% -0.0259 -0.1279)
OKLCHoklch(55.45% 0.131 258.6)
XYZxyz(17.4226, 16.8406, 51.0376)
Luminance0.1684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4072BE #BE8C40
analogous
#40B1BE #4072BE #4D40BE
triadic
#4072BE #BE4072 #72BE40
tetradic
#4072BE #BE40B1 #BE8C40 #40BE4D
square
#4072BE #BE40B1 #BE8C40 #40BE4D
split-complementary
#4072BE #BE4D40 #B1BE40
monochromatic
#213B62 #315790 #4072BE #6D94CE #9BB5DD

Accessibility & contrast

On white

4.81
#4072BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#4072BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4072BE
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4072BE#FFFFFF#000000##FFFFFF
##4072BE1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5078C1
Deuteranopia (green-blind)
#3D6DBC
Tritanopia (blue-blind)
#00838F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4072be;
/* rgb */ color: rgb(64, 114, 190);
/* oklch */ color: oklch(55.4% 0.131 258.6);
Tailwind
colors: {
  custom: {
    50: '#829ad2',
    500: '#4072be',
    950: '#000000',
  },
}
SCSS
$custom: #4072be;
$custom-light: #829ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#4072be",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 190
  },
  "hsl": {
    "h": 216.19,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.55446,
    "c": 0.1305,
    "h": 258.6
  },
  "luminance": 0.16842
}

Semantic roles & 50–950 ramp

primary
#4072BE
secondary
#C9B390
accent
#A24FD9
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0B0E14
muted
#7C7E82

Preview Lab

Preview with #4072BE

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

Preview Lab → · Contrast checker → · Palette generator →

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