#04112D#04112D

#04112D is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.6% C 0.060 H 261.8°. Best body text is #FFFFFF at 18.70:1 contrast (WCAG AA passes).

Color values

HEX#04112D
RGBrgb(4, 17, 45)
HSLhsl(221, 84%, 10%)
HSVhsv(221, 91%, 18%)
CMYKcmyk(91.1%, 62.2%, 0%, 82.4%)
CIE-LABlab(5.57, 5.67, -20.14)
CIE-LCHlch(5.57, 20.92, 285.73°)
OKLaboklab(18.56% -0.0086 -0.0594)
OKLCHoklch(18.56% 0.06 261.8)
XYZxyz(0.7240, 0.6161, 2.5629)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04112D #2D2004
analogous
#04262D #04112D #0C042D
triadic
#04112D #2D0411 #112D04
tetradic
#04112D #2D0426 #2D2004 #042D0C
square
#04112D #2D0426 #2D2004 #042D0C
split-complementary
#04112D #2D0C04 #262D04
monochromatic
#020B1C #020B1C #04112D #092665 #0E3B9D

Accessibility & contrast

On white

18.70
#04112D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04112D
18.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04112D#FFFFFF#000000##FFFFFF
##04112D1.0018.701.1218.70
#FFFFFF18.701.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02142E
Deuteranopia (green-blind)
#00102C
Tritanopia (blue-blind)
#00181C
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #04112d;
/* rgb */ color: rgb(4, 17, 45);
/* oklch */ color: oklch(18.6% 0.060 261.8);
Tailwind
colors: {
  custom: {
    50: '#4a4f66',
    500: '#04112d',
    950: '#000000',
  },
}
SCSS
$custom: #04112d;
$custom-light: #4a4f66;
$custom-dark: #000000;
JSON
{
  "hex": "#04112d",
  "rgb": {
    "r": 4,
    "g": 17,
    "b": 45
  },
  "hsl": {
    "h": 220.976,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.18559,
    "c": 0.06006,
    "h": 261.8
  },
  "luminance": 0.00616
}

Semantic roles & 50–950 ramp

primary
#04112D
secondary
#70551D
accent
#B92EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #04112D

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

Preview Lab → · Contrast checker → · Palette generator →

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