#041D40#041D40

#041D40 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.5% C 0.074 H 257.3°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#041D40
RGBrgb(4, 29, 64)
HSLhsl(215, 88%, 13%)
HSVhsv(215, 94%, 25%)
CMYKcmyk(93.8%, 54.7%, 0%, 74.9%)
CIE-LABlab(11.10, 6.19, -25.00)
CIE-LCHlch(11.10, 25.76, 283.91°)
OKLaboklab(23.54% -0.0162 -0.0719)
OKLCHoklch(23.54% 0.074 257.3)
XYZxyz(1.4145, 1.2745, 5.0210)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041D40 #402704
analogous
#043B40 #041D40 #090440
triadic
#041D40 #40041D #1D4004
tetradic
#041D40 #40043B #402704 #044009
square
#041D40 #40043B #402704 #044009
split-complementary
#041D40 #400904 #3B4004
monochromatic
#020D1D #020D1D #041D40 #08377A #0B51B3

Accessibility & contrast

On white

16.73
#041D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#041D40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041D40
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041D40#FFFFFF#000000##FFFFFF
##041D401.0016.731.2516.73
#FFFFFF16.731.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092141
Deuteranopia (green-blind)
#001B3F
Tritanopia (blue-blind)
#00252B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #041d40;
/* rgb */ color: rgb(4, 29, 64);
/* oklch */ color: oklch(23.5% 0.074 257.3);
Tailwind
colors: {
  custom: {
    50: '#505875',
    500: '#041d40',
    950: '#000000',
  },
}
SCSS
$custom: #041d40;
$custom-light: #505875;
$custom-dark: #000000;
JSON
{
  "hex": "#041d40",
  "rgb": {
    "r": 4,
    "g": 29,
    "b": 64
  },
  "hsl": {
    "h": 215,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23543,
    "c": 0.07374,
    "h": 257.3
  },
  "luminance": 0.01275
}

Semantic roles & 50–950 ramp

primary
#041D40
secondary
#81581F
accent
#A629FE
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #041D40

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

Preview Lab → · Contrast checker → · Palette generator →

#041D40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva