#04072D#04072D

#04072D is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.1% C 0.076 H 269.8°. Best body text is #FFFFFF at 19.56:1 contrast (WCAG AA passes).

Color values

HEX#04072D
RGBrgb(4, 7, 45)
HSLhsl(236, 84%, 10%)
HSVhsv(236, 91%, 18%)
CMYKcmyk(91.1%, 84.4%, 0%, 82.4%)
CIE-LABlab(3.32, 10.26, -23.70)
CIE-LCHlch(3.32, 25.83, 293.41°)
OKLaboklab(16.05% -0.0002 -0.0757)
OKLCHoklch(16.05% 0.076 269.8)
XYZxyz(0.5995, 0.3672, 2.5214)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04072D #2D2A04
analogous
#041C2D #04072D #16042D
triadic
#04072D #2D0407 #072D04
tetradic
#04072D #2D041C #2D2A04 #042D16
square
#04072D #2D041C #2D2A04 #042D16
split-complementary
#04072D #2D1604 #1C2D04
monochromatic
#02041C #02041C #04072D #091065 #0E189D

Accessibility & contrast

On white

19.56
#04072D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#04072D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04072D
19.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04072D#FFFFFF#000000##FFFFFF
##04072D1.0019.561.0719.56
#FFFFFF19.561.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2E
Deuteranopia (green-blind)
#000A2C
Tritanopia (blue-blind)
#001119
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #04072d;
/* rgb */ color: rgb(4, 7, 45);
/* oklch */ color: oklch(16.1% 0.076 269.8);
Tailwind
colors: {
  custom: {
    50: '#4a4966',
    500: '#04072d',
    950: '#000000',
  },
}
SCSS
$custom: #04072d;
$custom-light: #4a4966;
$custom-dark: #000000;
JSON
{
  "hex": "#04072d",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 45
  },
  "hsl": {
    "h": 235.61,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.1605,
    "c": 0.07572,
    "h": 269.8
  },
  "luminance": 0.00367
}

Semantic roles & 50–950 ramp

primary
#04072D
secondary
#706A1D
accent
#EB2EFA
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010106
muted
#77777A

Preview Lab

Preview with #04072D

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

Preview Lab → · Contrast checker → · Palette generator →

#04072D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva