#041638#041638

#041638 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 20.9% C 0.071 H 260.6°. Best body text is #FFFFFF at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#041638
RGBrgb(4, 22, 56)
HSLhsl(219, 87%, 12%)
HSVhsv(219, 93%, 22%)
CMYKcmyk(92.9%, 60.7%, 0%, 78%)
CIE-LABlab(7.99, 7.95, -24.31)
CIE-LCHlch(7.99, 25.58, 288.11°)
OKLaboklab(20.95% -0.0115 -0.0701)
OKLCHoklch(20.95% 0.071 260.6)
XYZxyz(1.0505, 0.8850, 3.8561)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041638 #382604
analogous
#043038 #041638 #0C0438
triadic
#041638 #380416 #163804
tetradic
#041638 #380430 #382604 #04380C
square
#041638 #380430 #382604 #04380C
split-complementary
#041638 #380C04 #303804
monochromatic
#020B1D #020B1D #041638 #082C71 #0C43AA

Accessibility & contrast

On white

17.84
#041638 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #041638
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041638#FFFFFF#000000##FFFFFF
##0416381.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021A39
Deuteranopia (green-blind)
#001537
Tritanopia (blue-blind)
#001E24
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #041638;
/* rgb */ color: rgb(4, 22, 56);
/* oklch */ color: oklch(20.9% 0.071 260.6);
Tailwind
colors: {
  custom: {
    50: '#4e526f',
    500: '#041638',
    950: '#000000',
  },
}
SCSS
$custom: #041638;
$custom-light: #4e526f;
$custom-dark: #000000;
JSON
{
  "hex": "#041638",
  "rgb": {
    "r": 4,
    "g": 22,
    "b": 56
  },
  "hsl": {
    "h": 219.231,
    "s": 86.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.2095,
    "c": 0.07101,
    "h": 260.6
  },
  "luminance": 0.00885
}

Semantic roles & 50–950 ramp

primary
#041638
secondary
#7A5A1E
accent
#B42BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #041638

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

Preview Lab → · Contrast checker → · Palette generator →

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