#04112B#04112B

#04112B is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.4% C 0.057 H 260.9°. Best body text is #FFFFFF at 18.75:1 contrast (WCAG AA passes).

Color values

HEX#04112B
RGBrgb(4, 17, 43)
HSLhsl(220, 83%, 9%)
HSVhsv(220, 91%, 17%)
CMYKcmyk(90.7%, 60.5%, 0%, 83.1%)
CIE-LABlab(5.43, 4.72, -18.86)
CIE-LCHlch(5.43, 19.44, 284.05°)
OKLaboklab(18.37% -0.009 -0.0559)
OKLCHoklch(18.37% 0.057 260.9)
XYZxyz(0.6864, 0.6010, 2.3649)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04112B #2B1E04
analogous
#04252B #04112B #0B042B
triadic
#04112B #2B0411 #112B04
tetradic
#04112B #2B0425 #2B1E04 #042B0B
square
#04112B #2B0425 #2B1E04 #042B0B
split-complementary
#04112B #2B0B04 #252B04
monochromatic
#030B1C #030B1C #04112B #092763 #0E3D9B

Accessibility & contrast

On white

18.75
#04112B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04112B
18.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04112B#FFFFFF#000000##FFFFFF
##04112B1.0018.751.1218.75
#FFFFFF18.751.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04112b;
/* rgb */ color: rgb(4, 17, 43);
/* oklch */ color: oklch(18.4% 0.057 260.9);
Tailwind
colors: {
  custom: {
    50: '#494f64',
    500: '#04112b',
    950: '#000000',
  },
}
SCSS
$custom: #04112b;
$custom-light: #494f64;
$custom-dark: #000000;
JSON
{
  "hex": "#04112b",
  "rgb": {
    "r": 4,
    "g": 17,
    "b": 43
  },
  "hsl": {
    "h": 220,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.1837,
    "c": 0.05657,
    "h": 260.9
  },
  "luminance": 0.00601
}

Semantic roles & 50–950 ramp

primary
#04112B
secondary
#6E531D
accent
#B62EF9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #04112B

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

Preview Lab → · Contrast checker → · Palette generator →

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