#040B35#040B35

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

Color values

HEX#040B35
RGBrgb(4, 11, 53)
HSLhsl(231, 86%, 11%)
HSVhsv(231, 92%, 21%)
CMYKcmyk(92.5%, 79.2%, 0%, 79.2%)
CIE-LABlab(4.72, 12.94, -27.42)
CIE-LCHlch(4.72, 30.32, 295.26°)
OKLaboklab(17.96% -0.0036 -0.0824)
OKLCHoklch(17.96% 0.082 267.5)
XYZxyz(0.8121, 0.5221, 3.4254)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B35 #352E04
analogous
#042335 #040B35 #150435
triadic
#040B35 #35040B #0B3504
tetradic
#040B35 #350423 #352E04 #043515
square
#040B35 #350423 #352E04 #043515
split-complementary
#040B35 #351504 #233504
monochromatic
#02061C #02061C #040B35 #08176E #0D23A7

Accessibility & contrast

On white

19.01
#040B35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040B35
19.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B35#FFFFFF#000000##FFFFFF
##040B351.0019.011.1019.01
#FFFFFF19.011.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040b35;
/* rgb */ color: rgb(4, 11, 53);
/* oklch */ color: oklch(18.0% 0.082 267.5);
Tailwind
colors: {
  custom: {
    50: '#4c4b6d',
    500: '#040b35',
    950: '#000000',
  },
}
SCSS
$custom: #040b35;
$custom-light: #4c4b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#040b35",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 53
  },
  "hsl": {
    "h": 231.429,
    "s": 85.965,
    "l": 11.176
  },
  "oklch": {
    "l": 0.17962,
    "c": 0.08246,
    "h": 267.5
  },
  "luminance": 0.00522
}

Semantic roles & 50–950 ramp

primary
#040B35
secondary
#776A1E
accent
#DE2CFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020107
muted
#78777A

Preview Lab

Preview with #040B35

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

Preview Lab → · Contrast checker → · Palette generator →

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