#040A3F#040A3F

#040A3F is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.0% C 0.099 H 267.5°. Best body text is #FFFFFF at 18.74:1 contrast (WCAG AA passes).

Color values

HEX#040A3F
RGBrgb(4, 10, 63)
HSLhsl(234, 88%, 13%)
HSVhsv(234, 94%, 25%)
CMYKcmyk(93.7%, 84.1%, 0%, 75.3%)
CIE-LABlab(5.43, 19.16, -33.51)
CIE-LCHlch(5.43, 38.60, 299.76°)
OKLaboklab(19.04% -0.0043 -0.0988)
OKLCHoklch(19.04% 0.099 267.5)
XYZxyz(1.0555, 0.6016, 4.7622)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A3F #3F3904
analogous
#04273F #040A3F #1B043F
triadic
#040A3F #3F040A #0A3F04
tetradic
#040A3F #3F0427 #3F3904 #043F1B
square
#040A3F #3F0427 #3F3904 #043F1B
split-complementary
#040A3F #3F1B04 #273F04
monochromatic
#02051D #02051D #040A3F #081379 #0B1CB2

Accessibility & contrast

On white

18.74
#040A3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#040A3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040A3F
18.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A3F#FFFFFF#000000##FFFFFF
##040A3F1.0018.741.1218.74
#FFFFFF18.741.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001541
Deuteranopia (green-blind)
#000F3E
Tritanopia (blue-blind)
#001A23
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #040a3f;
/* rgb */ color: rgb(4, 10, 63);
/* oklch */ color: oklch(19.0% 0.099 267.5);
Tailwind
colors: {
  custom: {
    50: '#514a75',
    500: '#040a3f',
    950: '#000000',
  },
}
SCSS
$custom: #040a3f;
$custom-light: #514a75;
$custom-dark: #000000;
JSON
{
  "hex": "#040a3f",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 63
  },
  "hsl": {
    "h": 233.898,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.19037,
    "c": 0.09892,
    "h": 267.5
  },
  "luminance": 0.00602
}

Semantic roles & 50–950 ramp

primary
#040A3F
secondary
#80761E
accent
#E92AFE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #040A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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