#040A32#040A32

#040A32 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.4% C 0.079 H 268.0°. Best body text is #FFFFFF at 19.19:1 contrast (WCAG AA passes).

Color values

HEX#040A32
RGBrgb(4, 10, 50)
HSLhsl(232, 85%, 11%)
HSVhsv(232, 92%, 20%)
CMYKcmyk(92%, 80%, 0%, 80.4%)
CIE-LABlab(4.27, 11.65, -25.92)
CIE-LCHlch(4.27, 28.41, 294.21°)
OKLaboklab(17.38% -0.0028 -0.079)
OKLCHoklch(17.38% 0.079 268)
XYZxyz(0.7341, 0.4731, 3.0696)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A32 #322C04
analogous
#042132 #040A32 #150432
triadic
#040A32 #32040A #0A3204
tetradic
#040A32 #320421 #322C04 #043215
square
#040A32 #320421 #322C04 #043215
split-complementary
#040A32 #321504 #213204
monochromatic
#02061C #02061C #040A32 #09156B #0D21A3

Accessibility & contrast

On white

19.19
#040A32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#040A32 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040A32
19.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A32#FFFFFF#000000##FFFFFF
##040A321.0019.191.0919.19
#FFFFFF19.191.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001133
Deuteranopia (green-blind)
#000D31
Tritanopia (blue-blind)
#00151C
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040a32;
/* rgb */ color: rgb(4, 10, 50);
/* oklch */ color: oklch(17.4% 0.079 268.0);
Tailwind
colors: {
  custom: {
    50: '#4b4b6a',
    500: '#040a32',
    950: '#000000',
  },
}
SCSS
$custom: #040a32;
$custom-light: #4b4b6a;
$custom-dark: #000000;
JSON
{
  "hex": "#040a32",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 50
  },
  "hsl": {
    "h": 232.174,
    "s": 85.185,
    "l": 10.588
  },
  "oklch": {
    "l": 0.1738,
    "c": 0.0791,
    "h": 268
  },
  "luminance": 0.00473
}

Semantic roles & 50–950 ramp

primary
#040A32
secondary
#74691D
accent
#E02CFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040A32

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

Preview Lab → · Contrast checker → · Palette generator →

#040A32 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva