#040A2A#040A2A

#040A2A is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.4% C 0.066 H 267.9°. Best body text is #FFFFFF at 19.41:1 contrast (WCAG AA passes).

Color values

HEX#040A2A
RGBrgb(4, 10, 42)
HSLhsl(231, 83%, 9%)
HSVhsv(231, 90%, 16%)
CMYKcmyk(90.5%, 76.2%, 0%, 83.5%)
CIE-LABlab(3.70, 7.65, -20.82)
CIE-LCHlch(3.70, 22.18, 290.17°)
OKLaboklab(16.43% -0.0024 -0.0658)
OKLCHoklch(16.43% 0.066 267.9)
XYZxyz(0.5764, 0.4100, 2.2388)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A2A #2A2404
analogous
#041D2A #040A2A #11042A
triadic
#040A2A #2A040A #0A2A04
tetradic
#040A2A #2A041D #2A2404 #042A11
square
#040A2A #2A041D #2A2404 #042A11
split-complementary
#040A2A #2A1104 #1D2A04
monochromatic
#03071C #03071C #040A2A #091762 #0F259A

Accessibility & contrast

On white

19.41
#040A2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#040A2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040A2A
19.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A2A#FFFFFF#000000##FFFFFF
##040A2A1.0019.411.0819.41
#FFFFFF19.411.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2B
Deuteranopia (green-blind)
#000B29
Tritanopia (blue-blind)
#001218
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040a2a;
/* rgb */ color: rgb(4, 10, 42);
/* oklch */ color: oklch(16.4% 0.066 267.9);
Tailwind
colors: {
  custom: {
    50: '#494b63',
    500: '#040a2a',
    950: '#000000',
  },
}
SCSS
$custom: #040a2a;
$custom-light: #494b63;
$custom-dark: #000000;
JSON
{
  "hex": "#040a2a",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 42
  },
  "hsl": {
    "h": 230.526,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.16434,
    "c": 0.06588,
    "h": 267.9
  },
  "luminance": 0.0041
}

Semantic roles & 50–950 ramp

primary
#040A2A
secondary
#6D601D
accent
#D92FF9
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #040A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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