#040720#040720

#040720 is a very dark, muted blue. Relative luminance 0.003; OKLCH L 14.5% C 0.054 H 270.8°. Best body text is #FFFFFF at 19.88:1 contrast (WCAG AA passes).

Color values

HEX#040720
RGBrgb(4, 7, 32)
HSLhsl(234, 78%, 7%)
HSVhsv(234, 88%, 13%)
CMYKcmyk(87.5%, 78.1%, 0%, 87.5%)
CIE-LABlab(2.55, 4.86, -14.88)
CIE-LCHlch(2.55, 15.65, 288.09°)
OKLaboklab(14.49% 0.0007 -0.0536)
OKLCHoklch(14.49% 0.054 270.8)
XYZxyz(0.3867, 0.2820, 1.4003)
Luminance0.0028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040720 #201D04
analogous
#041520 #040720 #0F0420
triadic
#040720 #200407 #072004
tetradic
#040720 #200415 #201D04 #04200F
square
#040720 #200415 #201D04 #04200F
split-complementary
#040720 #200F04 #152004
monochromatic
#03061B #03061B #040720 #0B1356 #121F8D

Accessibility & contrast

On white

19.88
#040720 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#040720 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040720
19.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040720#FFFFFF#000000##FFFFFF
##0407201.0019.881.0619.88
#FFFFFF19.881.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B21
Deuteranopia (green-blind)
#000820
Tritanopia (blue-blind)
#000D12
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #040720;
/* rgb */ color: rgb(4, 7, 32);
/* oklch */ color: oklch(14.5% 0.054 270.8);
Tailwind
colors: {
  custom: {
    50: '#484a5b',
    500: '#040720',
    950: '#000000',
  },
}
SCSS
$custom: #040720;
$custom-light: #484a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#040720",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 32
  },
  "hsl": {
    "h": 233.571,
    "s": 77.778,
    "l": 7.059
  },
  "oklch": {
    "l": 0.14485,
    "c": 0.05363,
    "h": 270.8
  },
  "luminance": 0.00282
}

Semantic roles & 50–950 ramp

primary
#040720
secondary
#635B1D
accent
#E034F4
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000104
muted
#777779

Preview Lab

Preview with #040720

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

Preview Lab → · Contrast checker → · Palette generator →

#040720 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva