#040336#040336

#040336 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.3% C 0.096 H 270.1°. Best body text is #FFFFFF at 19.60:1 contrast (WCAG AA passes).

Color values

HEX#040336
RGBrgb(4, 3, 54)
HSLhsl(241, 89%, 11%)
HSVhsv(241, 94%, 21%)
CMYKcmyk(92.6%, 94.4%, 0%, 78.8%)
CIE-LABlab(3.23, 16.75, -30.56)
CIE-LCHlch(3.23, 34.84, 298.72°)
OKLaboklab(16.3% 0.0001 -0.0959)
OKLCHoklch(16.3% 0.096 270.1)
XYZxyz(0.7483, 0.3572, 3.5188)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040336 #353603
analogous
#031B36 #040336 #1D0336
triadic
#040336 #360403 #033604
tetradic
#040336 #36031B #353603 #03361D
square
#040336 #36031B #353603 #03361D
split-complementary
#040336 #361D03 #1B3603
monochromatic
#02021D #02021D #040336 #080670 #0D09AA

Accessibility & contrast

On white

19.60
#040336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#040336 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040336
19.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040336#FFFFFF#000000##FFFFFF
##0403361.0019.601.0719.60
#FFFFFF19.601.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E37
Deuteranopia (green-blind)
#000935
Tritanopia (blue-blind)
#00121C
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040336;
/* rgb */ color: rgb(4, 3, 54);
/* oklch */ color: oklch(16.3% 0.096 270.1);
Tailwind
colors: {
  custom: {
    50: '#4c476e',
    500: '#040336',
    950: '#000000',
  },
}
SCSS
$custom: #040336;
$custom-light: #4c476e;
$custom-dark: #000000;
JSON
{
  "hex": "#040336",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 54
  },
  "hsl": {
    "h": 241.176,
    "s": 89.474,
    "l": 11.176
  },
  "oklch": {
    "l": 0.16303,
    "c": 0.09588,
    "h": 270.1
  },
  "luminance": 0.00357
}

Semantic roles & 50–950 ramp

primary
#040336
secondary
#77791C
accent
#FF29FB
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #040336

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

Preview Lab → · Contrast checker → · Palette generator →

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