#040729#040729

#040729 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.5% C 0.069 H 270.2°. Best body text is #FFFFFF at 19.67:1 contrast (WCAG AA passes).

Color values

HEX#040729
RGBrgb(4, 7, 41)
HSLhsl(235, 82%, 9%)
HSVhsv(235, 90%, 16%)
CMYKcmyk(90.2%, 82.9%, 0%, 83.9%)
CIE-LABlab(3.05, 8.40, -21.08)
CIE-LCHlch(3.05, 22.70, 291.73°)
OKLaboklab(15.55% 0.0002 -0.0692)
OKLCHoklch(15.55% 0.069 270.2)
XYZxyz(0.5262, 0.3378, 2.1349)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040729 #292604
analogous
#041A29 #040729 #140429
triadic
#040729 #290407 #072904
tetradic
#040729 #29041A #292604 #042914
square
#040729 #29041A #292604 #042914
split-complementary
#040729 #291404 #1A2904
monochromatic
#03051C #03051C #040729 #091161 #0F1A99

Accessibility & contrast

On white

19.67
#040729 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#040729 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040729
19.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040729#FFFFFF#000000##FFFFFF
##0407291.0019.671.0719.67
#FFFFFF19.671.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2A
Deuteranopia (green-blind)
#000928
Tritanopia (blue-blind)
#001016
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #040729;
/* rgb */ color: rgb(4, 7, 41);
/* oklch */ color: oklch(15.5% 0.069 270.2);
Tailwind
colors: {
  custom: {
    50: '#494a63',
    500: '#040729',
    950: '#000000',
  },
}
SCSS
$custom: #040729;
$custom-light: #494a63;
$custom-dark: #000000;
JSON
{
  "hex": "#040729",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 41
  },
  "hsl": {
    "h": 235.135,
    "s": 82.222,
    "l": 8.824
  },
  "oklch": {
    "l": 0.15546,
    "c": 0.06921,
    "h": 270.2
  },
  "luminance": 0.00338
}

Semantic roles & 50–950 ramp

primary
#040729
secondary
#6C651D
accent
#E82FF9
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #040729

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

Preview Lab → · Contrast checker → · Palette generator →

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