#041839#041839

#041839 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.6% C 0.070 H 259.1°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#041839
RGBrgb(4, 24, 57)
HSLhsl(217, 87%, 12%)
HSVhsv(217, 93%, 22%)
CMYKcmyk(93%, 57.9%, 0%, 77.6%)
CIE-LABlab(8.78, 6.82, -23.76)
CIE-LCHlch(8.78, 24.72, 286.00°)
OKLaboklab(21.58% -0.0131 -0.0684)
OKLCHoklch(21.58% 0.07 259.1)
XYZxyz(1.1150, 0.9744, 3.9994)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041839 #392504
analogous
#043339 #041839 #0A0439
triadic
#041839 #390418 #183904
tetradic
#041839 #390433 #392504 #04390A
square
#041839 #390433 #392504 #04390A
split-complementary
#041839 #390A04 #333904
monochromatic
#020C1D #020C1D #041839 #083072 #0C48AB

Accessibility & contrast

On white

17.58
#041839 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#041839 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041839
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041839#FFFFFF#000000##FFFFFF
##0418391.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051C3A
Deuteranopia (green-blind)
#001738
Tritanopia (blue-blind)
#002025
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #041839;
/* rgb */ color: rgb(4, 24, 57);
/* oklch */ color: oklch(21.6% 0.070 259.1);
Tailwind
colors: {
  custom: {
    50: '#4e5470',
    500: '#041839',
    950: '#000000',
  },
}
SCSS
$custom: #041839;
$custom-light: #4e5470;
$custom-dark: #000000;
JSON
{
  "hex": "#041839",
  "rgb": {
    "r": 4,
    "g": 24,
    "b": 57
  },
  "hsl": {
    "h": 217.358,
    "s": 86.885,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21576,
    "c": 0.06967,
    "h": 259.1
  },
  "luminance": 0.00974
}

Semantic roles & 50–950 ramp

primary
#041839
secondary
#7B581E
accent
#AE2BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #041839

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

Preview Lab → · Contrast checker → · Palette generator →

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