#041A3F#041A3F

#041A3F is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.7% C 0.077 H 259.6°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#041A3F
RGBrgb(4, 26, 63)
HSLhsl(218, 88%, 13%)
HSVhsv(218, 94%, 25%)
CMYKcmyk(93.7%, 58.7%, 0%, 75.3%)
CIE-LABlab(9.98, 8.09, -26.10)
CIE-LCHlch(9.98, 27.33, 287.23°)
OKLaboklab(22.66% -0.0139 -0.0752)
OKLCHoklch(22.66% 0.077 259.6)
XYZxyz(1.3163, 1.1233, 4.8491)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041A3F #3F2904
analogous
#04373F #041A3F #0B043F
triadic
#041A3F #3F041A #1A3F04
tetradic
#041A3F #3F0437 #3F2904 #043F0B
square
#041A3F #3F0437 #3F2904 #043F0B
split-complementary
#041A3F #3F0B04 #373F04
monochromatic
#020C1D #020C1D #041A3F #083279 #0B49B2

Accessibility & contrast

On white

17.15
#041A3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#041A3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041A3F
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041A3F#FFFFFF#000000##FFFFFF
##041A3F1.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031E40
Deuteranopia (green-blind)
#00193E
Tritanopia (blue-blind)
#002329
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #041a3f;
/* rgb */ color: rgb(4, 26, 63);
/* oklch */ color: oklch(22.7% 0.077 259.6);
Tailwind
colors: {
  custom: {
    50: '#505574',
    500: '#041a3f',
    950: '#000000',
  },
}
SCSS
$custom: #041a3f;
$custom-light: #505574;
$custom-dark: #000000;
JSON
{
  "hex": "#041a3f",
  "rgb": {
    "r": 4,
    "g": 26,
    "b": 63
  },
  "hsl": {
    "h": 217.627,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.2266,
    "c": 0.07651,
    "h": 259.6
  },
  "luminance": 0.01123
}

Semantic roles & 50–950 ramp

primary
#041A3F
secondary
#805C1E
accent
#AF2AFE
background
#F4F4F7
surface
#E7E8ED
border
#C3C4C8
text
#020308
muted
#78787B

Preview Lab

Preview with #041A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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