#040A31#040A31

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

Color values

HEX#040A31
RGBrgb(4, 10, 49)
HSLhsl(232, 85%, 10%)
HSVhsv(232, 92%, 19%)
CMYKcmyk(91.8%, 79.6%, 0%, 80.8%)
CIE-LABlab(4.20, 11.11, -25.30)
CIE-LCHlch(4.20, 27.63, 293.71°)
OKLaboklab(17.26% -0.0027 -0.0774)
OKLCHoklch(17.26% 0.077 268)
XYZxyz(0.7128, 0.4646, 2.9572)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A31 #312B04
analogous
#042031 #040A31 #140431
triadic
#040A31 #31040A #0A3104
tetradic
#040A31 #310420 #312B04 #043114
square
#040A31 #310420 #312B04 #043114
split-complementary
#040A31 #311404 #203104
monochromatic
#02061C #02061C #040A31 #09166A #0D21A2

Accessibility & contrast

On white

19.21
#040A31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040A31
19.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A31#FFFFFF#000000##FFFFFF
##040A311.0019.211.0919.21
#FFFFFF19.211.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040a31;
/* rgb */ color: rgb(4, 10, 49);
/* oklch */ color: oklch(17.3% 0.077 268.0);
Tailwind
colors: {
  custom: {
    50: '#4b4b69',
    500: '#040a31',
    950: '#000000',
  },
}
SCSS
$custom: #040a31;
$custom-light: #4b4b69;
$custom-dark: #000000;
JSON
{
  "hex": "#040a31",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 49
  },
  "hsl": {
    "h": 232,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.17258,
    "c": 0.07749,
    "h": 268
  },
  "luminance": 0.00465
}

Semantic roles & 50–950 ramp

primary
#040A31
secondary
#73681D
accent
#E02DFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040A31

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

Preview Lab → · Contrast checker → · Palette generator →

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