#040B34#040B34

#040B34 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.8% C 0.081 H 267.5°. Best body text is #FFFFFF at 19.05:1 contrast (WCAG AA passes).

Color values

HEX#040B34
RGBrgb(4, 11, 52)
HSLhsl(231, 86%, 11%)
HSVhsv(231, 92%, 20%)
CMYKcmyk(92.3%, 78.8%, 0%, 79.6%)
CIE-LABlab(4.63, 12.36, -26.82)
CIE-LCHlch(4.63, 29.53, 294.75°)
OKLaboklab(17.84% -0.0036 -0.0808)
OKLCHoklch(17.84% 0.081 267.5)
XYZxyz(0.7894, 0.5130, 3.3056)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B34 #342D04
analogous
#042334 #040B34 #150434
triadic
#040B34 #34040B #0B3404
tetradic
#040B34 #340423 #342D04 #043415
square
#040B34 #340423 #342D04 #043415
split-complementary
#040B34 #341504 #233404
monochromatic
#02061C #02061C #040B34 #08176D #0D23A6

Accessibility & contrast

On white

19.05
#040B34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040B34
19.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B34#FFFFFF#000000##FFFFFF
##040B341.0019.051.1019.05
#FFFFFF19.051.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040b34;
/* rgb */ color: rgb(4, 11, 52);
/* oklch */ color: oklch(17.8% 0.081 267.5);
Tailwind
colors: {
  custom: {
    50: '#4c4b6c',
    500: '#040b34',
    950: '#000000',
  },
}
SCSS
$custom: #040b34;
$custom-light: #4c4b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#040b34",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 52
  },
  "hsl": {
    "h": 231.25,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.1784,
    "c": 0.08088,
    "h": 267.5
  },
  "luminance": 0.00513
}

Semantic roles & 50–950 ramp

primary
#040B34
secondary
#76691E
accent
#DE2CFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010107
muted
#77777A

Preview Lab

Preview with #040B34

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

Preview Lab → · Contrast checker → · Palette generator →

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