#04082E#04082E

#04082E is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.4% C 0.076 H 269.2°. Best body text is #FFFFFF at 19.46:1 contrast (WCAG AA passes).

Color values

HEX#04082E
RGBrgb(4, 8, 46)
HSLhsl(234, 84%, 10%)
HSVhsv(234, 91%, 18%)
CMYKcmyk(91.3%, 82.6%, 0%, 82%)
CIE-LABlab(3.58, 10.36, -24.03)
CIE-LCHlch(3.58, 26.17, 293.32°)
OKLaboklab(16.43% -0.0011 -0.0757)
OKLCHoklch(16.43% 0.076 269.2)
XYZxyz(0.6299, 0.3967, 2.6276)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04082E #2E2A04
analogous
#041D2E #04082E #15042E
triadic
#04082E #2E0408 #082E04
tetradic
#04082E #2E041D #2E2A04 #042E15
square
#04082E #2E041D #2E2A04 #042E15
split-complementary
#04082E #2E1504 #1D2E04
monochromatic
#02051C #02051C #04082E #091266 #0E1C9F

Accessibility & contrast

On white

19.46
#04082E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#04082E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04082E
19.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04082E#FFFFFF#000000##FFFFFF
##04082E1.0019.461.0819.46
#FFFFFF19.461.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2F
Deuteranopia (green-blind)
#000B2D
Tritanopia (blue-blind)
#001219
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #04082e;
/* rgb */ color: rgb(4, 8, 46);
/* oklch */ color: oklch(16.4% 0.076 269.2);
Tailwind
colors: {
  custom: {
    50: '#4a4a67',
    500: '#04082e',
    950: '#000000',
  },
}
SCSS
$custom: #04082e;
$custom-light: #4a4a67;
$custom-dark: #000000;
JSON
{
  "hex": "#04082e",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 46
  },
  "hsl": {
    "h": 234.286,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.16426,
    "c": 0.07569,
    "h": 269.2
  },
  "luminance": 0.00397
}

Semantic roles & 50–950 ramp

primary
#04082E
secondary
#71691D
accent
#E72EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #04082E

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

Preview Lab → · Contrast checker → · Palette generator →

#04082E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva