#04072C#04072C

#04072C is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 15.9% C 0.074 H 269.9°. Best body text is #FFFFFF at 19.59:1 contrast (WCAG AA passes).

Color values

HEX#04072C
RGBrgb(4, 7, 44)
HSLhsl(236, 83%, 9%)
HSVhsv(236, 91%, 17%)
CMYKcmyk(90.9%, 84.1%, 0%, 82.7%)
CIE-LABlab(3.25, 9.78, -23.05)
CIE-LCHlch(3.25, 25.04, 292.98°)
OKLaboklab(15.92% -0.0001 -0.0741)
OKLCHoklch(15.92% 0.074 269.9)
XYZxyz(0.5805, 0.3596, 2.4212)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04072C #2C2904
analogous
#041B2C #04072C #15042C
triadic
#04072C #2C0407 #072C04
tetradic
#04072C #2C041B #2C2904 #042C15
square
#04072C #2C041B #2C2904 #042C15
split-complementary
#04072C #2C1504 #1B2C04
monochromatic
#03041C #03041C #04072C #091064 #0E199C

Accessibility & contrast

On white

19.59
#04072C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04072C
19.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04072C#FFFFFF#000000##FFFFFF
##04072C1.0019.591.0719.59
#FFFFFF19.591.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2D
Deuteranopia (green-blind)
#000A2B
Tritanopia (blue-blind)
#001118
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #04072c;
/* rgb */ color: rgb(4, 7, 44);
/* oklch */ color: oklch(15.9% 0.074 269.9);
Tailwind
colors: {
  custom: {
    50: '#494a65',
    500: '#04072c',
    950: '#000000',
  },
}
SCSS
$custom: #04072c;
$custom-light: #494a65;
$custom-dark: #000000;
JSON
{
  "hex": "#04072c",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 44
  },
  "hsl": {
    "h": 235.5,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.15923,
    "c": 0.07412,
    "h": 269.9
  },
  "luminance": 0.0036
}

Semantic roles & 50–950 ramp

primary
#04072C
secondary
#6F691D
accent
#EA2EFA
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010105
muted
#77777A

Preview Lab

Preview with #04072C

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

Preview Lab → · Contrast checker → · Palette generator →

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