#041738#041738

#041738 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.2% C 0.070 H 259.7°. Best body text is #FFFFFF at 17.72:1 contrast (WCAG AA passes).

Color values

HEX#041738
RGBrgb(4, 23, 56)
HSLhsl(218, 87%, 12%)
HSVhsv(218, 93%, 22%)
CMYKcmyk(92.9%, 58.9%, 0%, 78%)
CIE-LABlab(8.34, 7.14, -23.75)
CIE-LCHlch(8.34, 24.80, 286.73°)
OKLaboklab(21.22% -0.0124 -0.0684)
OKLCHoklch(21.22% 0.07 259.7)
XYZxyz(1.0700, 0.9240, 3.8626)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041738 #382504
analogous
#043138 #041738 #0B0438
triadic
#041738 #380417 #173804
tetradic
#041738 #380431 #382504 #04380B
square
#041738 #380431 #382504 #04380B
split-complementary
#041738 #380B04 #313804
monochromatic
#020C1D #020C1D #041738 #082E71 #0C46AA

Accessibility & contrast

On white

17.72
#041738 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#041738 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041738
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041738#FFFFFF#000000##FFFFFF
##0417381.0017.721.1817.72
#FFFFFF17.721.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041B39
Deuteranopia (green-blind)
#001637
Tritanopia (blue-blind)
#001F24
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #041738;
/* rgb */ color: rgb(4, 23, 56);
/* oklch */ color: oklch(21.2% 0.070 259.7);
Tailwind
colors: {
  custom: {
    50: '#4e536f',
    500: '#041738',
    950: '#000000',
  },
}
SCSS
$custom: #041738;
$custom-light: #4e536f;
$custom-dark: #000000;
JSON
{
  "hex": "#041738",
  "rgb": {
    "r": 4,
    "g": 23,
    "b": 56
  },
  "hsl": {
    "h": 218.077,
    "s": 86.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21216,
    "c": 0.06952,
    "h": 259.7
  },
  "luminance": 0.00924
}

Semantic roles & 50–950 ramp

primary
#041738
secondary
#7A581E
accent
#B02BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #041738

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

Preview Lab → · Contrast checker → · Palette generator →

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