#040841#040841

#040841 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.9% C 0.104 H 267.8°. Best body text is #FFFFFF at 18.81:1 contrast (WCAG AA passes).

Color values

HEX#040841
RGBrgb(4, 8, 65)
HSLhsl(236, 88%, 14%)
HSVhsv(236, 94%, 25%)
CMYKcmyk(93.8%, 87.7%, 0%, 74.5%)
CIE-LABlab(5.25, 21.19, -35.25)
CIE-LCHlch(5.25, 41.13, 301.02°)
OKLaboklab(18.94% -0.004 -0.1041)
OKLCHoklch(18.94% 0.104 267.8)
XYZxyz(1.0907, 0.5810, 5.0547)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040841 #413D04
analogous
#042641 #040841 #1E0441
triadic
#040841 #410408 #084104
tetradic
#040841 #410426 #413D04 #04411E
square
#040841 #410426 #413D04 #04411E
split-complementary
#040841 #411E04 #264104
monochromatic
#02041D #02041D #040841 #080F7B #0B16B4

Accessibility & contrast

On white

18.81
#040841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040841
18.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040841#FFFFFF#000000##FFFFFF
##0408411.0018.811.1218.81
#FFFFFF18.811.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001543
Deuteranopia (green-blind)
#000E40
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #040841;
/* rgb */ color: rgb(4, 8, 65);
/* oklch */ color: oklch(18.9% 0.104 267.8);
Tailwind
colors: {
  custom: {
    50: '#524976',
    500: '#040841',
    950: '#000000',
  },
}
SCSS
$custom: #040841;
$custom-light: #524976;
$custom-dark: #000000;
JSON
{
  "hex": "#040841",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 65
  },
  "hsl": {
    "h": 236.066,
    "s": 88.406,
    "l": 13.529
  },
  "oklch": {
    "l": 0.18943,
    "c": 0.1042,
    "h": 267.8
  },
  "luminance": 0.00581
}

Semantic roles & 50–950 ramp

primary
#040841
secondary
#827C1F
accent
#F129FF
background
#F5F4F7
surface
#E8E6ED
border
#C4C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #040841

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

Preview Lab → · Contrast checker → · Palette generator →

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