#040A3A#040A3A

#040A3A is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.4% C 0.092 H 267.7°. Best body text is #FFFFFF at 18.93:1 contrast (WCAG AA passes).

Color values

HEX#040A3A
RGBrgb(4, 10, 58)
HSLhsl(233, 87%, 12%)
HSVhsv(233, 93%, 23%)
CMYKcmyk(93.1%, 82.8%, 0%, 77.3%)
CIE-LABlab(4.95, 16.33, -30.69)
CIE-LCHlch(4.95, 34.76, 298.01°)
OKLaboklab(18.39% -0.0036 -0.0914)
OKLCHoklch(18.39% 0.092 267.7)
XYZxyz(0.9221, 0.5483, 4.0594)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A3A #3A3404
analogous
#04253A #040A3A #19043A
triadic
#040A3A #3A040A #0A3A04
tetradic
#040A3A #3A0425 #3A3404 #043A19
square
#040A3A #3A0425 #3A3404 #043A19
split-complementary
#040A3A #3A1904 #253A04
monochromatic
#02051D #02051D #040A3A #081473 #0C1EAD

Accessibility & contrast

On white

18.93
#040A3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#040A3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040A3A
18.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A3A#FFFFFF#000000##FFFFFF
##040A3A1.0018.931.1118.93
#FFFFFF18.931.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133B
Deuteranopia (green-blind)
#000E39
Tritanopia (blue-blind)
#001821
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #040a3a;
/* rgb */ color: rgb(4, 10, 58);
/* oklch */ color: oklch(18.4% 0.092 267.7);
Tailwind
colors: {
  custom: {
    50: '#4f4a71',
    500: '#040a3a',
    950: '#000000',
  },
}
SCSS
$custom: #040a3a;
$custom-light: #4f4a71;
$custom-dark: #000000;
JSON
{
  "hex": "#040a3a",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 58
  },
  "hsl": {
    "h": 233.333,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.18386,
    "c": 0.09151,
    "h": 267.7
  },
  "luminance": 0.00548
}

Semantic roles & 50–950 ramp

primary
#040A3A
secondary
#7C711E
accent
#E62BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #040A3A

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

Preview Lab → · Contrast checker → · Palette generator →

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