#041838#041838

#041838 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.5% C 0.068 H 258.7°. Best body text is #FFFFFF at 17.60:1 contrast (WCAG AA passes).

Color values

HEX#041838
RGBrgb(4, 24, 56)
HSLhsl(217, 87%, 12%)
HSVhsv(217, 93%, 22%)
CMYKcmyk(92.9%, 57.1%, 0%, 78%)
CIE-LABlab(8.69, 6.33, -23.18)
CIE-LCHlch(8.69, 24.03, 285.28°)
OKLaboklab(21.48% -0.0133 -0.0667)
OKLCHoklch(21.48% 0.068 258.7)
XYZxyz(1.0903, 0.9645, 3.8693)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041838 #382404
analogous
#043238 #041838 #0A0438
triadic
#041838 #380418 #183804
tetradic
#041838 #380432 #382404 #04380A
square
#041838 #380432 #382404 #04380A
split-complementary
#041838 #380A04 #323804
monochromatic
#020C1D #020C1D #041838 #083071 #0C49AA

Accessibility & contrast

On white

17.60
#041838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#041838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041838
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041838#FFFFFF#000000##FFFFFF
##0418381.0017.601.1917.60
#FFFFFF17.601.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061B39
Deuteranopia (green-blind)
#001737
Tritanopia (blue-blind)
#002025
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #041838;
/* rgb */ color: rgb(4, 24, 56);
/* oklch */ color: oklch(21.5% 0.068 258.7);
Tailwind
colors: {
  custom: {
    50: '#4e546f',
    500: '#041838',
    950: '#000000',
  },
}
SCSS
$custom: #041838;
$custom-light: #4e546f;
$custom-dark: #000000;
JSON
{
  "hex": "#041838",
  "rgb": {
    "r": 4,
    "g": 24,
    "b": 56
  },
  "hsl": {
    "h": 216.923,
    "s": 86.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21484,
    "c": 0.06802,
    "h": 258.7
  },
  "luminance": 0.00965
}

Semantic roles & 50–950 ramp

primary
#041838
secondary
#7A571E
accent
#AC2BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #041838

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

Preview Lab → · Contrast checker → · Palette generator →

#041838 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva