#041A39#041A39

#041A39 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.1% C 0.067 H 257.0°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#041A39
RGBrgb(4, 26, 57)
HSLhsl(215, 87%, 12%)
HSVhsv(215, 93%, 22%)
CMYKcmyk(93%, 54.4%, 0%, 77.6%)
CIE-LABlab(9.48, 5.21, -22.63)
CIE-LCHlch(9.48, 23.22, 282.97°)
OKLaboklab(22.12% -0.015 -0.065)
OKLCHoklch(22.12% 0.067 257)
XYZxyz(1.1577, 1.0599, 4.0137)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041A39 #392304
analogous
#043539 #041A39 #080439
triadic
#041A39 #39041A #1A3904
tetradic
#041A39 #390435 #392304 #043908
square
#041A39 #390435 #392304 #043908
split-complementary
#041A39 #390804 #353904
monochromatic
#020D1D #020D1D #041A39 #083472 #0C4EAB

Accessibility & contrast

On white

17.33
#041A39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#041A39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041A39
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041A39#FFFFFF#000000##FFFFFF
##041A391.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091D3A
Deuteranopia (green-blind)
#001838
Tritanopia (blue-blind)
#002126
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #041a39;
/* rgb */ color: rgb(4, 26, 57);
/* oklch */ color: oklch(22.1% 0.067 257.0);
Tailwind
colors: {
  custom: {
    50: '#4e556f',
    500: '#041a39',
    950: '#000000',
  },
}
SCSS
$custom: #041a39;
$custom-light: #4e556f;
$custom-dark: #000000;
JSON
{
  "hex": "#041a39",
  "rgb": {
    "r": 4,
    "g": 26,
    "b": 57
  },
  "hsl": {
    "h": 215.094,
    "s": 86.885,
    "l": 11.961
  },
  "oklch": {
    "l": 0.22118,
    "c": 0.06673,
    "h": 257
  },
  "luminance": 0.0106
}

Semantic roles & 50–950 ramp

primary
#041A39
secondary
#7B541E
accent
#A62BFD
background
#F4F4F6
surface
#E7E8EC
border
#C3C4C7
text
#020307
muted
#78787A

Preview Lab

Preview with #041A39

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

Preview Lab → · Contrast checker → · Palette generator →

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