#04113B#04113B

#04113B is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.0% C 0.083 H 264.8°. Best body text is #FFFFFF at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#04113B
RGBrgb(4, 17, 59)
HSLhsl(226, 87%, 12%)
HSVhsv(226, 93%, 23%)
CMYKcmyk(93.2%, 71.2%, 0%, 76.9%)
CIE-LABlab(6.71, 13.13, -28.56)
CIE-LCHlch(6.71, 31.44, 294.68°)
OKLaboklab(20.01% -0.0075 -0.0831)
OKLCHoklch(20.01% 0.083 264.8)
XYZxyz(1.0397, 0.7423, 4.2253)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04113B #3B2E04
analogous
#042D3B #04113B #12043B
triadic
#04113B #3B0411 #113B04
tetradic
#04113B #3B042D #3B2E04 #043B12
square
#04113B #3B042D #3B2E04 #043B12
split-complementary
#04113B #3B1204 #2D3B04
monochromatic
#02081D #02081D #04113B #082274 #0C32AE

Accessibility & contrast

On white

18.29
#04113B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04113B
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04113B#FFFFFF#000000##FFFFFF
##04113B1.0018.291.1518.29
#FFFFFF18.291.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183C
Deuteranopia (green-blind)
#00123A
Tritanopia (blue-blind)
#001C23
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #04113b;
/* rgb */ color: rgb(4, 17, 59);
/* oklch */ color: oklch(20.0% 0.083 264.8);
Tailwind
colors: {
  custom: {
    50: '#4f4e71',
    500: '#04113b',
    950: '#000000',
  },
}
SCSS
$custom: #04113b;
$custom-light: #4f4e71;
$custom-dark: #000000;
JSON
{
  "hex": "#04113b",
  "rgb": {
    "r": 4,
    "g": 17,
    "b": 59
  },
  "hsl": {
    "h": 225.818,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20012,
    "c": 0.0834,
    "h": 264.8
  },
  "luminance": 0.00742
}

Semantic roles & 50–950 ramp

primary
#04113B
secondary
#7D661E
accent
#CC2AFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020108
muted
#78777B

Preview Lab

Preview with #04113B

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

Preview Lab → · Contrast checker → · Palette generator →

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