#040A36#040A36

#040A36 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.9% C 0.085 H 267.9°. Best body text is #FFFFFF at 19.06:1 contrast (WCAG AA passes).

Color values

HEX#040A36
RGBrgb(4, 10, 54)
HSLhsl(233, 86%, 11%)
HSVhsv(233, 93%, 21%)
CMYKcmyk(92.6%, 81.5%, 0%, 78.8%)
CIE-LABlab(4.60, 13.94, -28.34)
CIE-LCHlch(4.60, 31.59, 296.19°)
OKLaboklab(17.88% -0.0032 -0.0853)
OKLCHoklch(17.88% 0.085 267.9)
XYZxyz(0.8242, 0.5091, 3.5441)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A36 #363004
analogous
#042336 #040A36 #170436
triadic
#040A36 #36040A #0A3604
tetradic
#040A36 #360423 #363004 #043617
square
#040A36 #360423 #363004 #043617
split-complementary
#040A36 #361704 #233604
monochromatic
#02051C #02051C #040A36 #08156F #0C1FA8

Accessibility & contrast

On white

19.06
#040A36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#040A36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040A36
19.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A36#FFFFFF#000000##FFFFFF
##040A361.0019.061.1019.06
#FFFFFF19.061.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001237
Deuteranopia (green-blind)
#000D35
Tritanopia (blue-blind)
#00161E
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #040a36;
/* rgb */ color: rgb(4, 10, 54);
/* oklch */ color: oklch(17.9% 0.085 267.9);
Tailwind
colors: {
  custom: {
    50: '#4d4a6d',
    500: '#040a36',
    950: '#000000',
  },
}
SCSS
$custom: #040a36;
$custom-light: #4d4a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#040a36",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 54
  },
  "hsl": {
    "h": 232.8,
    "s": 86.207,
    "l": 11.373
  },
  "oklch": {
    "l": 0.17876,
    "c": 0.0854,
    "h": 267.9
  },
  "luminance": 0.00509
}

Semantic roles & 50–950 ramp

primary
#040A36
secondary
#786D1E
accent
#E32BFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020107
muted
#78777A

Preview Lab

Preview with #040A36

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

Preview Lab → · Contrast checker → · Palette generator →

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