#041837#041837

#041837 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.4% C 0.066 H 258.2°. Best body text is #FFFFFF at 17.63:1 contrast (WCAG AA passes).

Color values

HEX#041837
RGBrgb(4, 24, 55)
HSLhsl(216, 86%, 12%)
HSVhsv(216, 93%, 22%)
CMYKcmyk(92.7%, 56.4%, 0%, 78.4%)
CIE-LABlab(8.61, 5.85, -22.59)
CIE-LCHlch(8.61, 23.34, 284.51°)
OKLaboklab(21.39% -0.0135 -0.065)
OKLCHoklch(21.39% 0.066 258.2)
XYZxyz(1.0660, 0.9548, 3.7418)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041837 #372304
analogous
#043237 #041837 #0A0437
triadic
#041837 #370418 #183704
tetradic
#041837 #370432 #372304 #04370A
square
#041837 #370432 #372304 #04370A
split-complementary
#041837 #370A04 #323704
monochromatic
#020C1D #020C1D #041837 #083170 #0C4AA9

Accessibility & contrast

On white

17.63
#041837 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #041837
17.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041837#FFFFFF#000000##FFFFFF
##0418371.0017.631.1917.63
#FFFFFF17.631.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061B38
Deuteranopia (green-blind)
#001736
Tritanopia (blue-blind)
#001F24
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #041837;
/* rgb */ color: rgb(4, 24, 55);
/* oklch */ color: oklch(21.4% 0.066 258.2);
Tailwind
colors: {
  custom: {
    50: '#4d546e',
    500: '#041837',
    950: '#000000',
  },
}
SCSS
$custom: #041837;
$custom-light: #4d546e;
$custom-dark: #000000;
JSON
{
  "hex": "#041837",
  "rgb": {
    "r": 4,
    "g": 24,
    "b": 55
  },
  "hsl": {
    "h": 216.471,
    "s": 86.441,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21394,
    "c": 0.06637,
    "h": 258.2
  },
  "luminance": 0.00955
}

Semantic roles & 50–950 ramp

primary
#041837
secondary
#79551E
accent
#AA2BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #041837

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

Preview Lab → · Contrast checker → · Palette generator →

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