#041940#041940

#041940 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.5% C 0.080 H 260.7°. Best body text is #FFFFFF at 17.24:1 contrast (WCAG AA passes).

Color values

HEX#041940
RGBrgb(4, 25, 64)
HSLhsl(219, 88%, 13%)
HSVhsv(219, 94%, 25%)
CMYKcmyk(93.8%, 60.9%, 0%, 74.9%)
CIE-LABlab(9.73, 9.37, -27.21)
CIE-LCHlch(9.73, 28.78, 289.00°)
OKLaboklab(22.5% -0.0129 -0.0785)
OKLCHoklch(22.5% 0.08 260.7)
XYZxyz(1.3228, 1.0911, 4.9904)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041940 #402B04
analogous
#043740 #041940 #0D0440
triadic
#041940 #400419 #194004
tetradic
#041940 #400437 #402B04 #04400D
square
#041940 #400437 #402B04 #04400D
split-complementary
#041940 #400D04 #374004
monochromatic
#020B1D #020B1D #041940 #082F7A #0B46B3

Accessibility & contrast

On white

17.24
#041940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#041940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041940
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041940#FFFFFF#000000##FFFFFF
##0419401.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E41
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#002329
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #041940;
/* rgb */ color: rgb(4, 25, 64);
/* oklch */ color: oklch(22.5% 0.080 260.7);
Tailwind
colors: {
  custom: {
    50: '#505575',
    500: '#041940',
    950: '#000000',
  },
}
SCSS
$custom: #041940;
$custom-light: #505575;
$custom-dark: #000000;
JSON
{
  "hex": "#041940",
  "rgb": {
    "r": 4,
    "g": 25,
    "b": 64
  },
  "hsl": {
    "h": 219,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.22496,
    "c": 0.07961,
    "h": 260.7
  },
  "luminance": 0.01091
}

Semantic roles & 50–950 ramp

primary
#041940
secondary
#815F1F
accent
#B429FE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #041940

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

Preview Lab → · Contrast checker → · Palette generator →

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