#040936#040936

#040936 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.7% C 0.087 H 268.2°. Best body text is #FFFFFF at 19.13:1 contrast (WCAG AA passes).

Color values

HEX#040936
RGBrgb(4, 9, 54)
HSLhsl(234, 86%, 11%)
HSVhsv(234, 93%, 21%)
CMYKcmyk(92.6%, 83.3%, 0%, 78.8%)
CIE-LABlab(4.40, 14.34, -28.66)
CIE-LCHlch(4.40, 32.05, 296.59°)
OKLaboklab(17.67% -0.0027 -0.0867)
OKLCHoklch(17.67% 0.087 268.2)
XYZxyz(0.8134, 0.4874, 3.5405)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040936 #363104
analogous
#042236 #040936 #180436
triadic
#040936 #360409 #093604
tetradic
#040936 #360422 #363104 #043618
square
#040936 #360422 #363104 #043618
split-complementary
#040936 #361804 #223604
monochromatic
#02051C #02051C #040936 #08126F #0C1CA8

Accessibility & contrast

On white

19.13
#040936 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#040936 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040936
19.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040936#FFFFFF#000000##FFFFFF
##0409361.0019.131.1019.13
#FFFFFF19.131.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001237
Deuteranopia (green-blind)
#000D35
Tritanopia (blue-blind)
#00161E
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040936;
/* rgb */ color: rgb(4, 9, 54);
/* oklch */ color: oklch(17.7% 0.087 268.2);
Tailwind
colors: {
  custom: {
    50: '#4d4a6d',
    500: '#040936',
    950: '#000000',
  },
}
SCSS
$custom: #040936;
$custom-light: #4d4a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#040936",
  "rgb": {
    "r": 4,
    "g": 9,
    "b": 54
  },
  "hsl": {
    "h": 234,
    "s": 86.207,
    "l": 11.373
  },
  "oklch": {
    "l": 0.17668,
    "c": 0.08676,
    "h": 268.2
  },
  "luminance": 0.00488
}

Semantic roles & 50–950 ramp

primary
#040936
secondary
#786F1E
accent
#E82BFC
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #040936

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

Preview Lab → · Contrast checker → · Palette generator →

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