#04112C#04112C

#04112C is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.5% C 0.058 H 261.3°. Best body text is #FFFFFF at 18.72:1 contrast (WCAG AA passes).

Color values

HEX#04112C
RGBrgb(4, 17, 44)
HSLhsl(221, 83%, 9%)
HSVhsv(221, 91%, 17%)
CMYKcmyk(90.9%, 61.4%, 0%, 82.7%)
CIE-LABlab(5.50, 5.19, -19.50)
CIE-LCHlch(5.50, 20.18, 284.90°)
OKLaboklab(18.46% -0.0088 -0.0577)
OKLCHoklch(18.46% 0.058 261.3)
XYZxyz(0.7050, 0.6085, 2.4627)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04112C #2C1F04
analogous
#04252C #04112C #0B042C
triadic
#04112C #2C0411 #112C04
tetradic
#04112C #2C0425 #2C1F04 #042C0B
square
#04112C #2C0425 #2C1F04 #042C0B
split-complementary
#04112C #2C0B04 #252C04
monochromatic
#030B1C #030B1C #04112C #092764 #0E3C9C

Accessibility & contrast

On white

18.72
#04112C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04112C
18.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04112C#FFFFFF#000000##FFFFFF
##04112C1.0018.721.1218.72
#FFFFFF18.721.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04112c;
/* rgb */ color: rgb(4, 17, 44);
/* oklch */ color: oklch(18.5% 0.058 261.3);
Tailwind
colors: {
  custom: {
    50: '#4a4f65',
    500: '#04112c',
    950: '#000000',
  },
}
SCSS
$custom: #04112c;
$custom-light: #4a4f65;
$custom-dark: #000000;
JSON
{
  "hex": "#04112c",
  "rgb": {
    "r": 4,
    "g": 17,
    "b": 44
  },
  "hsl": {
    "h": 220.5,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.18464,
    "c": 0.05832,
    "h": 261.3
  },
  "luminance": 0.00609
}

Semantic roles & 50–950 ramp

primary
#04112C
secondary
#6F541D
accent
#B82EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #04112C

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

Preview Lab → · Contrast checker → · Palette generator →

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