#040A35#040A35

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

Color values

HEX#040A35
RGBrgb(4, 10, 53)
HSLhsl(233, 86%, 11%)
HSVhsv(233, 92%, 21%)
CMYKcmyk(92.5%, 81.1%, 0%, 79.2%)
CIE-LABlab(4.51, 13.35, -27.74)
CIE-LCHlch(4.51, 30.79, 295.70°)
OKLaboklab(17.75% -0.0031 -0.0838)
OKLCHoklch(17.75% 0.084 267.9)
XYZxyz(0.8010, 0.4998, 3.4217)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A35 #352F04
analogous
#042235 #040A35 #160435
triadic
#040A35 #35040A #0A3504
tetradic
#040A35 #350422 #352F04 #043516
square
#040A35 #350422 #352F04 #043516
split-complementary
#040A35 #351604 #223504
monochromatic
#02051C #02051C #040A35 #08156E #0D1FA7

Accessibility & contrast

On white

19.09
#040A35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040A35
19.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A35#FFFFFF#000000##FFFFFF
##040A351.0019.091.1019.09
#FFFFFF19.091.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040a35;
/* rgb */ color: rgb(4, 10, 53);
/* oklch */ color: oklch(17.8% 0.084 267.9);
Tailwind
colors: {
  custom: {
    50: '#4c4a6d',
    500: '#040a35',
    950: '#000000',
  },
}
SCSS
$custom: #040a35;
$custom-light: #4c4a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#040a35",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 53
  },
  "hsl": {
    "h": 232.653,
    "s": 85.965,
    "l": 11.176
  },
  "oklch": {
    "l": 0.17751,
    "c": 0.08384,
    "h": 267.9
  },
  "luminance": 0.005
}

Semantic roles & 50–950 ramp

primary
#040A35
secondary
#776C1E
accent
#E32CFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020107
muted
#78777A

Preview Lab

Preview with #040A35

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

Preview Lab → · Contrast checker → · Palette generator →

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