#040941#040941

#040941 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.1% C 0.103 H 267.6°. Best body text is #FFFFFF at 18.74:1 contrast (WCAG AA passes).

Color values

HEX#040941
RGBrgb(4, 9, 65)
HSLhsl(235, 88%, 14%)
HSVhsv(235, 94%, 25%)
CMYKcmyk(93.8%, 86.2%, 0%, 74.5%)
CIE-LABlab(5.44, 20.72, -34.92)
CIE-LCHlch(5.44, 40.61, 300.68°)
OKLaboklab(19.12% -0.0043 -0.1029)
OKLCHoklch(19.12% 0.103 267.6)
XYZxyz(1.1016, 0.6027, 5.0583)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040941 #413C04
analogous
#042741 #040941 #1D0441
triadic
#040941 #410409 #094104
tetradic
#040941 #410427 #413C04 #04411D
square
#040941 #410427 #413C04 #04411D
split-complementary
#040941 #411D04 #274104
monochromatic
#02041D #02041D #040941 #08117B #0B19B4

Accessibility & contrast

On white

18.74
#040941 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#040941 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040941
18.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040941#FFFFFF#000000##FFFFFF
##0409411.0018.741.1218.74
#FFFFFF18.741.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001543
Deuteranopia (green-blind)
#000F40
Tritanopia (blue-blind)
#001A24
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #040941;
/* rgb */ color: rgb(4, 9, 65);
/* oklch */ color: oklch(19.1% 0.103 267.6);
Tailwind
colors: {
  custom: {
    50: '#524976',
    500: '#040941',
    950: '#000000',
  },
}
SCSS
$custom: #040941;
$custom-light: #524976;
$custom-dark: #000000;
JSON
{
  "hex": "#040941",
  "rgb": {
    "r": 4,
    "g": 9,
    "b": 65
  },
  "hsl": {
    "h": 235.082,
    "s": 88.406,
    "l": 13.529
  },
  "oklch": {
    "l": 0.19124,
    "c": 0.10299,
    "h": 267.6
  },
  "luminance": 0.00603
}

Semantic roles & 50–950 ramp

primary
#040941
secondary
#827A1F
accent
#ED29FF
background
#F5F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #040941

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

Preview Lab → · Contrast checker → · Palette generator →

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