#4072DB#4072DB

#4072DB is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.3% C 0.170 H 263.0°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#4072DB
RGBrgb(64, 114, 219)
HSLhsl(221, 68%, 55%)
HSVhsv(221, 71%, 86%)
CMYKcmyk(70.8%, 47.9%, 0%, 14.1%)
CIE-LABlab(49.78, 18.31, -58.72)
CIE-LCHlch(49.78, 61.51, 287.32°)
OKLaboklab(57.33% -0.0207 -0.1685)
OKLCHoklch(57.33% 0.17 263)
XYZxyz(20.9133, 18.2369, 69.4220)
Luminance0.1824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4072DB #DBA940
analogous
#40C0DB #4072DB #5B40DB
triadic
#4072DB #DB4072 #72DB40
tetradic
#4072DB #DB40C0 #DBA940 #40DB5B
square
#4072DB #DB40C0 #DBA940 #40DB5B
split-complementary
#4072DB #DB5B40 #C0DB40
monochromatic
#193D87 #2354BB #4072DB #7398E5 #A7BEEE

Accessibility & contrast

On white

4.52
#4072DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#4072DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4072DB
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4072DB#FFFFFF#000000##000000
##4072DB1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#387EDF
Deuteranopia (green-blind)
#0770D9
Tritanopia (blue-blind)
#008B9C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #4072db;
/* rgb */ color: rgb(64, 114, 219);
/* oklch */ color: oklch(57.3% 0.170 263.0);
Tailwind
colors: {
  custom: {
    50: '#8799e7',
    500: '#4072db',
    950: '#000000',
  },
}
SCSS
$custom: #4072db;
$custom-light: #8799e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4072db",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 219
  },
  "hsl": {
    "h": 220.645,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.5733,
    "c": 0.16974,
    "h": 263
  },
  "luminance": 0.18239
}

Semantic roles & 50–950 ramp

primary
#4072DB
secondary
#DCC79B
accent
#B33DEB
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4072DB

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

Preview Lab → · Contrast checker → · Palette generator →

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