#041B40#041B40

#041B40 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.0% C 0.077 H 259.1°. Best body text is #FFFFFF at 16.99:1 contrast (WCAG AA passes).

Color values

HEX#041B40
RGBrgb(4, 27, 64)
HSLhsl(217, 88%, 13%)
HSVhsv(217, 94%, 25%)
CMYKcmyk(93.8%, 57.8%, 0%, 74.9%)
CIE-LABlab(10.41, 7.78, -26.12)
CIE-LCHlch(10.41, 27.25, 286.58°)
OKLaboklab(23.01% -0.0145 -0.0753)
OKLCHoklch(23.01% 0.077 259.1)
XYZxyz(1.3671, 1.1797, 5.0051)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041B40 #402904
analogous
#043940 #041B40 #0B0440
triadic
#041B40 #40041B #1B4004
tetradic
#041B40 #400439 #402904 #04400B
square
#041B40 #400439 #402904 #04400B
split-complementary
#041B40 #400B04 #394004
monochromatic
#020C1D #020C1D #041B40 #08337A #0B4CB3

Accessibility & contrast

On white

16.99
#041B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#041B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041B40
16.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041B40#FFFFFF#000000##FFFFFF
##041B401.0016.991.2416.99
#FFFFFF16.991.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041F41
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#00242A
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #041b40;
/* rgb */ color: rgb(4, 27, 64);
/* oklch */ color: oklch(23.0% 0.077 259.1);
Tailwind
colors: {
  custom: {
    50: '#505675',
    500: '#041b40',
    950: '#000000',
  },
}
SCSS
$custom: #041b40;
$custom-light: #505675;
$custom-dark: #000000;
JSON
{
  "hex": "#041b40",
  "rgb": {
    "r": 4,
    "g": 27,
    "b": 64
  },
  "hsl": {
    "h": 217,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23014,
    "c": 0.07665,
    "h": 259.1
  },
  "luminance": 0.0118
}

Semantic roles & 50–950 ramp

primary
#041B40
secondary
#815B1F
accent
#AD29FE
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #041B40

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

Preview Lab → · Contrast checker → · Palette generator →

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