#041A40#041A40

#041A40 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.8% C 0.078 H 259.9°. Best body text is #FFFFFF at 17.11:1 contrast (WCAG AA passes).

Color values

HEX#041A40
RGBrgb(4, 26, 64)
HSLhsl(218, 88%, 13%)
HSVhsv(218, 94%, 25%)
CMYKcmyk(93.8%, 59.4%, 0%, 74.9%)
CIE-LABlab(10.07, 8.57, -26.67)
CIE-LCHlch(10.07, 28.01, 287.82°)
OKLaboklab(22.75% -0.0137 -0.0769)
OKLCHoklch(22.75% 0.078 259.9)
XYZxyz(1.3445, 1.1346, 4.9976)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041A40 #402A04
analogous
#043840 #041A40 #0C0440
triadic
#041A40 #40041A #1A4004
tetradic
#041A40 #400438 #402A04 #04400C
square
#041A40 #400438 #402A04 #04400C
split-complementary
#041A40 #400C04 #384004
monochromatic
#020C1D #020C1D #041A40 #08317A #0B49B3

Accessibility & contrast

On white

17.11
#041A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#041A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041A40
17.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041A40#FFFFFF#000000##FFFFFF
##041A401.0017.111.2317.11
#FFFFFF17.111.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021F41
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#00232A
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #041a40;
/* rgb */ color: rgb(4, 26, 64);
/* oklch */ color: oklch(22.8% 0.078 259.9);
Tailwind
colors: {
  custom: {
    50: '#505575',
    500: '#041a40',
    950: '#000000',
  },
}
SCSS
$custom: #041a40;
$custom-light: #505575;
$custom-dark: #000000;
JSON
{
  "hex": "#041a40",
  "rgb": {
    "r": 4,
    "g": 26,
    "b": 64
  },
  "hsl": {
    "h": 218,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.22753,
    "c": 0.07812,
    "h": 259.9
  },
  "luminance": 0.01135
}

Semantic roles & 50–950 ramp

primary
#041A40
secondary
#815D1F
accent
#B029FE
background
#F4F4F7
surface
#E7E8ED
border
#C3C4C8
text
#020308
muted
#78787B

Preview Lab

Preview with #041A40

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

Preview Lab → · Contrast checker → · Palette generator →

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