#041640#041640

#041640 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.7% C 0.084 H 262.7°. Best body text is #FFFFFF at 17.59:1 contrast (WCAG AA passes).

Color values

HEX#041640
RGBrgb(4, 22, 64)
HSLhsl(222, 88%, 13%)
HSVhsv(222, 94%, 25%)
CMYKcmyk(93.8%, 65.6%, 0%, 74.9%)
CIE-LABlab(8.74, 11.78, -28.83)
CIE-LCHlch(8.74, 31.14, 292.23°)
OKLaboklab(21.75% -0.0107 -0.0834)
OKLCHoklch(21.75% 0.084 262.7)
XYZxyz(1.2621, 0.9696, 4.9701)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041640 #402E04
analogous
#043440 #041640 #100440
triadic
#041640 #400416 #164004
tetradic
#041640 #400434 #402E04 #044010
square
#041640 #400434 #402E04 #044010
split-complementary
#041640 #401004 #344004
monochromatic
#020A1D #020A1D #041640 #082A7A #0B3EB3

Accessibility & contrast

On white

17.59
#041640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #041640
17.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041640#FFFFFF#000000##FFFFFF
##0416401.0017.591.1917.59
#FFFFFF17.591.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#00163F
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #041640;
/* rgb */ color: rgb(4, 22, 64);
/* oklch */ color: oklch(21.7% 0.084 262.7);
Tailwind
colors: {
  custom: {
    50: '#515275',
    500: '#041640',
    950: '#000000',
  },
}
SCSS
$custom: #041640;
$custom-light: #515275;
$custom-dark: #000000;
JSON
{
  "hex": "#041640",
  "rgb": {
    "r": 4,
    "g": 22,
    "b": 64
  },
  "hsl": {
    "h": 222,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.21745,
    "c": 0.08404,
    "h": 262.7
  },
  "luminance": 0.0097
}

Semantic roles & 50–950 ramp

primary
#041640
secondary
#81641F
accent
#BE29FE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #041640

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

Preview Lab → · Contrast checker → · Palette generator →

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