#04112F#04112F

#04112F is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.8% C 0.064 H 262.5°. Best body text is #FFFFFF at 18.64:1 contrast (WCAG AA passes).

Color values

HEX#04112F
RGBrgb(4, 17, 47)
HSLhsl(222, 84%, 10%)
HSVhsv(222, 91%, 18%)
CMYKcmyk(91.5%, 63.8%, 0%, 81.6%)
CIE-LABlab(5.71, 6.67, -21.40)
CIE-LCHlch(5.71, 22.41, 287.31°)
OKLaboklab(18.75% -0.0083 -0.063)
OKLCHoklch(18.75% 0.064 262.5)
XYZxyz(0.7634, 0.6319, 2.7705)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04112F #2F2204
analogous
#04272F #04112F #0C042F
triadic
#04112F #2F0411 #112F04
tetradic
#04112F #2F0427 #2F2204 #042F0C
square
#04112F #2F0427 #2F2204 #042F0C
split-complementary
#04112F #2F0C04 #272F04
monochromatic
#020A1C #020A1C #04112F #092567 #0E3AA0

Accessibility & contrast

On white

18.64
#04112F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#04112F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04112F
18.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04112F#FFFFFF#000000##FFFFFF
##04112F1.0018.641.1318.64
#FFFFFF18.641.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011530
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#00181D
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #04112f;
/* rgb */ color: rgb(4, 17, 47);
/* oklch */ color: oklch(18.8% 0.064 262.5);
Tailwind
colors: {
  custom: {
    50: '#4b4f68',
    500: '#04112f',
    950: '#000000',
  },
}
SCSS
$custom: #04112f;
$custom-light: #4b4f68;
$custom-dark: #000000;
JSON
{
  "hex": "#04112f",
  "rgb": {
    "r": 4,
    "g": 17,
    "b": 47
  },
  "hsl": {
    "h": 221.86,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.18753,
    "c": 0.06351,
    "h": 262.5
  },
  "luminance": 0.00632
}

Semantic roles & 50–950 ramp

primary
#04112F
secondary
#72581D
accent
#BC2DFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #04112F

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

Preview Lab → · Contrast checker → · Palette generator →

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