#04113A#04113A

#04113A is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.9% C 0.082 H 264.7°. Best body text is #FFFFFF at 18.32:1 contrast (WCAG AA passes).

Color values

HEX#04113A
RGBrgb(4, 17, 58)
HSLhsl(226, 87%, 12%)
HSVhsv(226, 93%, 23%)
CMYKcmyk(93.1%, 70.7%, 0%, 77.3%)
CIE-LABlab(6.61, 12.60, -27.99)
CIE-LCHlch(6.61, 30.70, 294.23°)
OKLaboklab(19.9% -0.0075 -0.0814)
OKLCHoklch(19.9% 0.082 264.7)
XYZxyz(1.0140, 0.7321, 4.0900)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04113A #3A2D04
analogous
#042C3A #04113A #12043A
triadic
#04113A #3A0411 #113A04
tetradic
#04113A #3A042C #3A2D04 #043A12
square
#04113A #3A042C #3A2D04 #043A12
split-complementary
#04113A #3A1204 #2C3A04
monochromatic
#02081D #02081D #04113A #082273 #0C33AD

Accessibility & contrast

On white

18.32
#04113A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#04113A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04113A
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04113A#FFFFFF#000000##FFFFFF
##04113A1.0018.321.1518.32
#FFFFFF18.321.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173B
Deuteranopia (green-blind)
#001239
Tritanopia (blue-blind)
#001C23
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #04113a;
/* rgb */ color: rgb(4, 17, 58);
/* oklch */ color: oklch(19.9% 0.082 264.7);
Tailwind
colors: {
  custom: {
    50: '#4f4e71',
    500: '#04113a',
    950: '#000000',
  },
}
SCSS
$custom: #04113a;
$custom-light: #4f4e71;
$custom-dark: #000000;
JSON
{
  "hex": "#04113a",
  "rgb": {
    "r": 4,
    "g": 17,
    "b": 58
  },
  "hsl": {
    "h": 225.556,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.19902,
    "c": 0.0818,
    "h": 264.7
  },
  "luminance": 0.00732
}

Semantic roles & 50–950 ramp

primary
#04113A
secondary
#7C651E
accent
#CB2BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #04113A

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

Preview Lab → · Contrast checker → · Palette generator →

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