#04112A#04112A

#04112A is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.3% C 0.055 H 260.4°. Best body text is #FFFFFF at 18.77:1 contrast (WCAG AA passes).

Color values

HEX#04112A
RGBrgb(4, 17, 42)
HSLhsl(219, 83%, 9%)
HSVhsv(219, 90%, 16%)
CMYKcmyk(90.5%, 59.5%, 0%, 83.5%)
CIE-LABlab(5.36, 4.26, -18.21)
CIE-LCHlch(5.36, 18.70, 283.16°)
OKLaboklab(18.28% -0.0091 -0.0541)
OKLCHoklch(18.28% 0.055 260.4)
XYZxyz(0.6683, 0.5938, 2.2694)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04112A #2A1D04
analogous
#04242A #04112A #0A042A
triadic
#04112A #2A0411 #112A04
tetradic
#04112A #2A0424 #2A1D04 #042A0A
square
#04112A #2A0424 #2A1D04 #042A0A
split-complementary
#04112A #2A0A04 #242A04
monochromatic
#030B1C #030B1C #04112A #092862 #0F3E9A

Accessibility & contrast

On white

18.77
#04112A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#04112A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04112A
18.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04112A#FFFFFF#000000##FFFFFF
##04112A1.0018.771.1218.77
#FFFFFF18.771.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04142B
Deuteranopia (green-blind)
#001029
Tritanopia (blue-blind)
#00171B
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #04112a;
/* rgb */ color: rgb(4, 17, 42);
/* oklch */ color: oklch(18.3% 0.055 260.4);
Tailwind
colors: {
  custom: {
    50: '#494f63',
    500: '#04112a',
    950: '#000000',
  },
}
SCSS
$custom: #04112a;
$custom-light: #494f63;
$custom-dark: #000000;
JSON
{
  "hex": "#04112a",
  "rgb": {
    "r": 4,
    "g": 17,
    "b": 42
  },
  "hsl": {
    "h": 219.474,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.18278,
    "c": 0.05483,
    "h": 260.4
  },
  "luminance": 0.00594
}

Semantic roles & 50–950 ramp

primary
#04112A
secondary
#6D511D
accent
#B42FF9
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #04112A

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

Preview Lab → · Contrast checker → · Palette generator →

#04112A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva