#040A3B#040A3B

#040A3B is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.5% C 0.093 H 267.7°. Best body text is #FFFFFF at 18.89:1 contrast (WCAG AA passes).

Color values

HEX#040A3B
RGBrgb(4, 10, 59)
HSLhsl(233, 87%, 12%)
HSVhsv(233, 93%, 23%)
CMYKcmyk(93.2%, 83.1%, 0%, 76.9%)
CIE-LABlab(5.04, 16.91, -31.26)
CIE-LCHlch(5.04, 35.54, 298.41°)
OKLaboklab(18.52% -0.0038 -0.0929)
OKLCHoklch(18.52% 0.093 267.7)
XYZxyz(0.9478, 0.5585, 4.1947)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A3B #3B3504
analogous
#04253B #040A3B #1A043B
triadic
#040A3B #3B040A #0A3B04
tetradic
#040A3B #3B0425 #3B3504 #043B1A
square
#040A3B #3B0425 #3B3504 #043B1A
split-complementary
#040A3B #3B1A04 #253B04
monochromatic
#02051D #02051D #040A3B #081474 #0C1DAE

Accessibility & contrast

On white

18.89
#040A3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040A3B
18.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A3B#FFFFFF#000000##FFFFFF
##040A3B1.0018.891.1118.89
#FFFFFF18.891.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143C
Deuteranopia (green-blind)
#000E3A
Tritanopia (blue-blind)
#001821
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #040a3b;
/* rgb */ color: rgb(4, 10, 59);
/* oklch */ color: oklch(18.5% 0.093 267.7);
Tailwind
colors: {
  custom: {
    50: '#4f4a71',
    500: '#040a3b',
    950: '#000000',
  },
}
SCSS
$custom: #040a3b;
$custom-light: #4f4a71;
$custom-dark: #000000;
JSON
{
  "hex": "#040a3b",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 59
  },
  "hsl": {
    "h": 233.455,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.18515,
    "c": 0.09301,
    "h": 267.7
  },
  "luminance": 0.00559
}

Semantic roles & 50–950 ramp

primary
#040A3B
secondary
#7D721E
accent
#E62AFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020108
muted
#78777B

Preview Lab

Preview with #040A3B

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

Preview Lab → · Contrast checker → · Palette generator →

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