#040B2C#040B2C

#040B2C is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.9% C 0.068 H 267.2°. Best body text is #FFFFFF at 19.28:1 contrast (WCAG AA passes).

Color values

HEX#040B2C
RGBrgb(4, 11, 44)
HSLhsl(230, 83%, 9%)
HSVhsv(230, 91%, 17%)
CMYKcmyk(90.9%, 75%, 0%, 82.7%)
CIE-LABlab(4.04, 8.17, -21.81)
CIE-LCHlch(4.04, 23.29, 290.54°)
OKLaboklab(16.9% -0.0033 -0.0677)
OKLCHoklch(16.9% 0.068 267.2)
XYZxyz(0.6242, 0.4469, 2.4358)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B2C #2C2504
analogous
#041F2C #040B2C #11042C
triadic
#040B2C #2C040B #0B2C04
tetradic
#040B2C #2C041F #2C2504 #042C11
square
#040B2C #2C041F #2C2504 #042C11
split-complementary
#040B2C #2C1104 #1F2C04
monochromatic
#03071C #03071C #040B2C #091964 #0E279C

Accessibility & contrast

On white

19.28
#040B2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040B2C
19.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B2C#FFFFFF#000000##FFFFFF
##040B2C1.0019.281.0919.28
#FFFFFF19.281.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.281.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: #040b2c;
/* rgb */ color: rgb(4, 11, 44);
/* oklch */ color: oklch(16.9% 0.068 267.2);
Tailwind
colors: {
  custom: {
    50: '#4a4b65',
    500: '#040b2c',
    950: '#000000',
  },
}
SCSS
$custom: #040b2c;
$custom-light: #4a4b65;
$custom-dark: #000000;
JSON
{
  "hex": "#040b2c",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 44
  },
  "hsl": {
    "h": 229.5,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.16903,
    "c": 0.06775,
    "h": 267.2
  },
  "luminance": 0.00447
}

Semantic roles & 50–950 ramp

primary
#040B2C
secondary
#6F601D
accent
#D62EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #040B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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