#041B3F#041B3F

#041B3F is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 22.9% C 0.075 H 258.7°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#041B3F
RGBrgb(4, 27, 63)
HSLhsl(217, 88%, 13%)
HSVhsv(217, 94%, 25%)
CMYKcmyk(93.7%, 57.1%, 0%, 75.3%)
CIE-LABlab(10.32, 7.30, -25.55)
CIE-LCHlch(10.32, 26.57, 285.94°)
OKLaboklab(22.92% -0.0147 -0.0736)
OKLCHoklch(22.92% 0.075 258.7)
XYZxyz(1.3389, 1.1684, 4.8566)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041B3F #3F2804
analogous
#04383F #041B3F #0A043F
triadic
#041B3F #3F041B #1B3F04
tetradic
#041B3F #3F0438 #3F2804 #043F0A
square
#041B3F #3F0438 #3F2804 #043F0A
split-complementary
#041B3F #3F0A04 #383F04
monochromatic
#020C1D #020C1D #041B3F #083479 #0B4CB2

Accessibility & contrast

On white

17.02
#041B3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #041B3F
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041B3F#FFFFFF#000000##FFFFFF
##041B3F1.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051F40
Deuteranopia (green-blind)
#001A3E
Tritanopia (blue-blind)
#00242A
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #041b3f;
/* rgb */ color: rgb(4, 27, 63);
/* oklch */ color: oklch(22.9% 0.075 258.7);
Tailwind
colors: {
  custom: {
    50: '#505674',
    500: '#041b3f',
    950: '#000000',
  },
}
SCSS
$custom: #041b3f;
$custom-light: #505674;
$custom-dark: #000000;
JSON
{
  "hex": "#041b3f",
  "rgb": {
    "r": 4,
    "g": 27,
    "b": 63
  },
  "hsl": {
    "h": 216.61,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.22922,
    "c": 0.07503,
    "h": 258.7
  },
  "luminance": 0.01169
}

Semantic roles & 50–950 ramp

primary
#041B3F
secondary
#805A1E
accent
#AB2AFE
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #041B3F

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

Preview Lab → · Contrast checker → · Palette generator →

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