#040A2C#040A2C

#040A2C is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.7% C 0.069 H 268.0°. Best body text is #FFFFFF at 19.35:1 contrast (WCAG AA passes).

Color values

HEX#040A2C
RGBrgb(4, 10, 44)
HSLhsl(231, 83%, 9%)
HSVhsv(231, 91%, 17%)
CMYKcmyk(90.9%, 77.3%, 0%, 82.7%)
CIE-LABlab(3.84, 8.58, -22.12)
CIE-LCHlch(3.84, 23.73, 291.20°)
OKLaboklab(16.66% -0.0025 -0.0692)
OKLCHoklch(16.66% 0.069 268)
XYZxyz(0.6131, 0.4247, 2.4320)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A2C #2C2604
analogous
#041E2C #040A2C #12042C
triadic
#040A2C #2C040A #0A2C04
tetradic
#040A2C #2C041E #2C2604 #042C12
square
#040A2C #2C041E #2C2604 #042C12
split-complementary
#040A2C #2C1204 #1E2C04
monochromatic
#03061C #03061C #040A2C #091764 #0E249C

Accessibility & contrast

On white

19.35
#040A2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040A2C
19.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A2C#FFFFFF#000000##FFFFFF
##040A2C1.0019.351.0919.35
#FFFFFF19.351.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102D
Deuteranopia (green-blind)
#000C2B
Tritanopia (blue-blind)
#001319
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040a2c;
/* rgb */ color: rgb(4, 10, 44);
/* oklch */ color: oklch(16.7% 0.069 268.0);
Tailwind
colors: {
  custom: {
    50: '#494b65',
    500: '#040a2c',
    950: '#000000',
  },
}
SCSS
$custom: #040a2c;
$custom-light: #494b65;
$custom-dark: #000000;
JSON
{
  "hex": "#040a2c",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 44
  },
  "hsl": {
    "h": 231,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.16664,
    "c": 0.06927,
    "h": 268
  },
  "luminance": 0.00425
}

Semantic roles & 50–950 ramp

primary
#040A2C
secondary
#6F621D
accent
#DB2EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #040A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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