#04113F#04113F

#04113F is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.5% C 0.090 H 265.2°. Best body text is #FFFFFF at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#04113F
RGBrgb(4, 17, 63)
HSLhsl(227, 88%, 13%)
HSVhsv(227, 94%, 25%)
CMYKcmyk(93.7%, 73%, 0%, 75.3%)
CIE-LABlab(7.09, 15.15, -30.80)
CIE-LCHlch(7.09, 34.33, 296.20°)
OKLaboklab(20.46% -0.0075 -0.0894)
OKLCHoklch(20.46% 0.09 265.2)
XYZxyz(1.1474, 0.7854, 4.7928)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04113F #3F3204
analogous
#042E3F #04113F #14043F
triadic
#04113F #3F0411 #113F04
tetradic
#04113F #3F042E #3F3204 #043F14
square
#04113F #3F042E #3F3204 #043F14
split-complementary
#04113F #3F1404 #2E3F04
monochromatic
#02081D #02081D #04113F #082179 #0B30B2

Accessibility & contrast

On white

18.15
#04113F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#04113F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04113F
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04113F#FFFFFF#000000##FFFFFF
##04113F1.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001940
Deuteranopia (green-blind)
#00133E
Tritanopia (blue-blind)
#001D26
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #04113f;
/* rgb */ color: rgb(4, 17, 63);
/* oklch */ color: oklch(20.5% 0.090 265.2);
Tailwind
colors: {
  custom: {
    50: '#514e75',
    500: '#04113f',
    950: '#000000',
  },
}
SCSS
$custom: #04113f;
$custom-light: #514e75;
$custom-dark: #000000;
JSON
{
  "hex": "#04113f",
  "rgb": {
    "r": 4,
    "g": 17,
    "b": 63
  },
  "hsl": {
    "h": 226.78,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20463,
    "c": 0.08972,
    "h": 265.2
  },
  "luminance": 0.00786
}

Semantic roles & 50–950 ramp

primary
#04113F
secondary
#806B1E
accent
#CF2AFE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020108
muted
#78777B

Preview Lab

Preview with #04113F

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

Preview Lab → · Contrast checker → · Palette generator →

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