#040A34#040A34

#040A34 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.6% C 0.082 H 267.9°. Best body text is #FFFFFF at 19.12:1 contrast (WCAG AA passes).

Color values

HEX#040A34
RGBrgb(4, 10, 52)
HSLhsl(233, 86%, 11%)
HSVhsv(233, 92%, 20%)
CMYKcmyk(92.3%, 80.8%, 0%, 79.6%)
CIE-LABlab(4.43, 12.77, -27.14)
CIE-LCHlch(4.43, 30.00, 295.20°)
OKLaboklab(17.63% -0.003 -0.0822)
OKLCHoklch(17.63% 0.082 267.9)
XYZxyz(0.7782, 0.4907, 3.3019)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A34 #342E04
analogous
#042234 #040A34 #160434
triadic
#040A34 #34040A #0A3404
tetradic
#040A34 #340422 #342E04 #043416
square
#040A34 #340422 #342E04 #043416
split-complementary
#040A34 #341604 #223404
monochromatic
#02051C #02051C #040A34 #08156D #0D20A6

Accessibility & contrast

On white

19.12
#040A34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#040A34 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040A34
19.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A34#FFFFFF#000000##FFFFFF
##040A341.0019.121.1019.12
#FFFFFF19.121.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001235
Deuteranopia (green-blind)
#000D33
Tritanopia (blue-blind)
#00161D
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040a34;
/* rgb */ color: rgb(4, 10, 52);
/* oklch */ color: oklch(17.6% 0.082 267.9);
Tailwind
colors: {
  custom: {
    50: '#4c4b6c',
    500: '#040a34',
    950: '#000000',
  },
}
SCSS
$custom: #040a34;
$custom-light: #4c4b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#040a34",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 52
  },
  "hsl": {
    "h": 232.5,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.17626,
    "c": 0.08227,
    "h": 267.9
  },
  "luminance": 0.00491
}

Semantic roles & 50–950 ramp

primary
#040A34
secondary
#766B1E
accent
#E22CFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010107
muted
#77777A

Preview Lab

Preview with #040A34

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

Preview Lab → · Contrast checker → · Palette generator →

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