#04072B#04072B

#04072B is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 15.8% C 0.072 H 270.0°. Best body text is #FFFFFF at 19.62:1 contrast (WCAG AA passes).

Color values

HEX#04072B
RGBrgb(4, 7, 43)
HSLhsl(235, 83%, 9%)
HSVhsv(235, 91%, 17%)
CMYKcmyk(90.7%, 83.7%, 0%, 83.1%)
CIE-LABlab(3.18, 9.31, -22.40)
CIE-LCHlch(3.18, 24.26, 292.56°)
OKLaboklab(15.8% 0 -0.0725)
OKLCHoklch(15.8% 0.073 270)
XYZxyz(0.5619, 0.3521, 2.3234)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04072B #2B2804
analogous
#041B2B #04072B #15042B
triadic
#04072B #2B0407 #072B04
tetradic
#04072B #2B041B #2B2804 #042B15
square
#04072B #2B041B #2B2804 #042B15
split-complementary
#04072B #2B1504 #1B2B04
monochromatic
#03051C #03051C #04072B #091063 #0E199B

Accessibility & contrast

On white

19.62
#04072B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04072B
19.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04072B#FFFFFF#000000##FFFFFF
##04072B1.0019.621.0719.62
#FFFFFF19.621.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2C
Deuteranopia (green-blind)
#000A2A
Tritanopia (blue-blind)
#001117
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #04072b;
/* rgb */ color: rgb(4, 7, 43);
/* oklch */ color: oklch(15.8% 0.072 270.0);
Tailwind
colors: {
  custom: {
    50: '#494a64',
    500: '#04072b',
    950: '#000000',
  },
}
SCSS
$custom: #04072b;
$custom-light: #494a64;
$custom-dark: #000000;
JSON
{
  "hex": "#04072b",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 43
  },
  "hsl": {
    "h": 235.385,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.15796,
    "c": 0.0725,
    "h": 270
  },
  "luminance": 0.00352
}

Semantic roles & 50–950 ramp

primary
#04072B
secondary
#6E681D
accent
#EA2EF9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #04072B

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

Preview Lab → · Contrast checker → · Palette generator →

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