#041840#041840

#041840 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.2% C 0.081 H 261.4°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#041840
RGBrgb(4, 24, 64)
HSLhsl(220, 88%, 13%)
HSVhsv(220, 94%, 25%)
CMYKcmyk(93.8%, 62.5%, 0%, 74.9%)
CIE-LABlab(9.39, 10.17, -27.76)
CIE-LCHlch(9.39, 29.56, 290.13°)
OKLaboklab(22.24% -0.0121 -0.0802)
OKLCHoklch(22.24% 0.081 261.4)
XYZxyz(1.3018, 1.0491, 4.9834)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041840 #402C04
analogous
#043640 #041840 #0E0440
triadic
#041840 #400418 #184004
tetradic
#041840 #400436 #402C04 #04400E
square
#041840 #400436 #402C04 #04400E
split-complementary
#041840 #400E04 #364004
monochromatic
#020B1D #020B1D #041840 #082E7A #0B43B3

Accessibility & contrast

On white

17.36
#041840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#041840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041840
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041840#FFFFFF#000000##FFFFFF
##0418401.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#002229
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #041840;
/* rgb */ color: rgb(4, 24, 64);
/* oklch */ color: oklch(22.2% 0.081 261.4);
Tailwind
colors: {
  custom: {
    50: '#505475',
    500: '#041840',
    950: '#000000',
  },
}
SCSS
$custom: #041840;
$custom-light: #505475;
$custom-dark: #000000;
JSON
{
  "hex": "#041840",
  "rgb": {
    "r": 4,
    "g": 24,
    "b": 64
  },
  "hsl": {
    "h": 220,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.22242,
    "c": 0.08108,
    "h": 261.4
  },
  "luminance": 0.01049
}

Semantic roles & 50–950 ramp

primary
#041840
secondary
#81601F
accent
#B729FE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #041840

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

Preview Lab → · Contrast checker → · Palette generator →

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