#040A33#040A33

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

Color values

HEX#040A33
RGBrgb(4, 10, 51)
HSLhsl(232, 85%, 11%)
HSVhsv(232, 92%, 20%)
CMYKcmyk(92.2%, 80.4%, 0%, 80%)
CIE-LABlab(4.35, 12.21, -26.53)
CIE-LCHlch(4.35, 29.20, 294.71°)
OKLaboklab(17.5% -0.0029 -0.0806)
OKLCHoklch(17.5% 0.081 267.9)
XYZxyz(0.7559, 0.4818, 3.1845)
Luminance0.0048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A33 #332D04
analogous
#042133 #040A33 #150433
triadic
#040A33 #33040A #0A3304
tetradic
#040A33 #330421 #332D04 #043315
square
#040A33 #330421 #332D04 #043315
split-complementary
#040A33 #331504 #213304
monochromatic
#02061C #02061C #040A33 #08156C #0D20A4

Accessibility & contrast

On white

19.15
#040A33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040A33
19.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A33#FFFFFF#000000##FFFFFF
##040A331.0019.151.1019.15
#FFFFFF19.151.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001134
Deuteranopia (green-blind)
#000D32
Tritanopia (blue-blind)
#00151D
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040a33;
/* rgb */ color: rgb(4, 10, 51);
/* oklch */ color: oklch(17.5% 0.081 267.9);
Tailwind
colors: {
  custom: {
    50: '#4c4b6b',
    500: '#040a33',
    950: '#000000',
  },
}
SCSS
$custom: #040a33;
$custom-light: #4c4b6b;
$custom-dark: #000000;
JSON
{
  "hex": "#040a33",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 51
  },
  "hsl": {
    "h": 232.34,
    "s": 85.455,
    "l": 10.784
  },
  "oklch": {
    "l": 0.17503,
    "c": 0.08069,
    "h": 267.9
  },
  "luminance": 0.00482
}

Semantic roles & 50–950 ramp

primary
#040A33
secondary
#756A1D
accent
#E12CFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040A33

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

Preview Lab → · Contrast checker → · Palette generator →

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