#040A2B#040A2B

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

Color values

HEX#040A2B
RGBrgb(4, 10, 43)
HSLhsl(231, 83%, 9%)
HSVhsv(231, 91%, 17%)
CMYKcmyk(90.7%, 76.7%, 0%, 83.1%)
CIE-LABlab(3.77, 8.11, -21.48)
CIE-LCHlch(3.77, 22.96, 290.69°)
OKLaboklab(16.55% -0.0024 -0.0675)
OKLCHoklch(16.55% 0.068 267.9)
XYZxyz(0.5945, 0.4172, 2.3342)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A2B #2B2504
analogous
#041E2B #040A2B #12042B
triadic
#040A2B #2B040A #0A2B04
tetradic
#040A2B #2B041E #2B2504 #042B12
square
#040A2B #2B041E #2B2504 #042B12
split-complementary
#040A2B #2B1204 #1E2B04
monochromatic
#03071C #03071C #040A2B #091763 #0E249B

Accessibility & contrast

On white

19.38
#040A2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040A2B
19.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A2B#FFFFFF#000000##FFFFFF
##040A2B1.0019.381.0819.38
#FFFFFF19.381.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2C
Deuteranopia (green-blind)
#000C2A
Tritanopia (blue-blind)
#001319
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040a2b;
/* rgb */ color: rgb(4, 10, 43);
/* oklch */ color: oklch(16.5% 0.068 267.9);
Tailwind
colors: {
  custom: {
    50: '#494b64',
    500: '#040a2b',
    950: '#000000',
  },
}
SCSS
$custom: #040a2b;
$custom-light: #494b64;
$custom-dark: #000000;
JSON
{
  "hex": "#040a2b",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 43
  },
  "hsl": {
    "h": 230.769,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.16549,
    "c": 0.06758,
    "h": 267.9
  },
  "luminance": 0.00417
}

Semantic roles & 50–950 ramp

primary
#040A2B
secondary
#6E611D
accent
#DA2EF9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #040A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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