#041939#041939

#041939 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.8% C 0.068 H 258.1°. Best body text is #FFFFFF at 17.45:1 contrast (WCAG AA passes).

Color values

HEX#041939
RGBrgb(4, 25, 57)
HSLhsl(216, 87%, 12%)
HSVhsv(216, 93%, 22%)
CMYKcmyk(93%, 56.1%, 0%, 77.6%)
CIE-LABlab(9.13, 6.01, -23.20)
CIE-LCHlch(9.13, 23.97, 284.53°)
OKLaboklab(21.85% -0.014 -0.0667)
OKLCHoklch(21.85% 0.068 258.1)
XYZxyz(1.1359, 1.0163, 4.0064)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041939 #392404
analogous
#043439 #041939 #090439
triadic
#041939 #390419 #193904
tetradic
#041939 #390434 #392404 #043909
square
#041939 #390434 #392404 #043909
split-complementary
#041939 #390904 #343904
monochromatic
#020D1D #020D1D #041939 #083272 #0C4BAB

Accessibility & contrast

On white

17.45
#041939 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#041939 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041939
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041939#FFFFFF#000000##FFFFFF
##0419391.0017.451.2017.45
#FFFFFF17.451.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071C3A
Deuteranopia (green-blind)
#001738
Tritanopia (blue-blind)
#002126
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #041939;
/* rgb */ color: rgb(4, 25, 57);
/* oklch */ color: oklch(21.8% 0.068 258.1);
Tailwind
colors: {
  custom: {
    50: '#4e556f',
    500: '#041939',
    950: '#000000',
  },
}
SCSS
$custom: #041939;
$custom-light: #4e556f;
$custom-dark: #000000;
JSON
{
  "hex": "#041939",
  "rgb": {
    "r": 4,
    "g": 25,
    "b": 57
  },
  "hsl": {
    "h": 216.226,
    "s": 86.885,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21845,
    "c": 0.06819,
    "h": 258.1
  },
  "luminance": 0.01016
}

Semantic roles & 50–950 ramp

primary
#041939
secondary
#7B561E
accent
#AA2BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #041939

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

Preview Lab → · Contrast checker → · Palette generator →

#041939 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva