#040029#040029

#040029 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.4% C 0.084 H 274.4°. Best body text is #FFFFFF at 20.25:1 contrast (WCAG AA passes).

Color values

HEX#040029
RGBrgb(4, 0, 41)
HSLhsl(246, 100%, 8%)
HSVhsv(246, 100%, 16%)
CMYKcmyk(90.2%, 100%, 0%, 83.9%)
CIE-LABlab(1.68, 11.20, -23.23)
CIE-LCHlch(1.68, 25.79, 295.74°)
OKLaboklab(13.35% 0.0065 -0.084)
OKLCHoklch(13.35% 0.084 274.4)
XYZxyz(0.4502, 0.1859, 2.1095)
Luminance0.0019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040029 #252900
analogous
#001029 #040029 #180029
triadic
#040029 #290400 #002904
tetradic
#040029 #290010 #252900 #002918
square
#040029 #290010 #252900 #002918
split-complementary
#040029 #291800 #102900
monochromatic
#03001F #03001F #040029 #0A0066 #1000A3

Accessibility & contrast

On white

20.25
#040029 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#040029 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040029
20.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040029#FFFFFF#000000##FFFFFF
##0400291.0020.251.0420.25
#FFFFFF20.251.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00082A
Deuteranopia (green-blind)
#000528
Tritanopia (blue-blind)
#000A13
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #040029;
/* rgb */ color: rgb(4, 0, 41);
/* oklch */ color: oklch(13.4% 0.084 274.4);
Tailwind
colors: {
  custom: {
    50: '#484663',
    500: '#040029',
    950: '#000000',
  },
}
SCSS
$custom: #040029;
$custom-light: #484663;
$custom-dark: #000000;
JSON
{
  "hex": "#040029",
  "rgb": {
    "r": 4,
    "g": 0,
    "b": 41
  },
  "hsl": {
    "h": 245.854,
    "s": 100,
    "l": 8.039
  },
  "oklch": {
    "l": 0.13351,
    "c": 0.08428,
    "h": 274.4
  },
  "luminance": 0.00186
}

Semantic roles & 50–950 ramp

primary
#040029
secondary
#687114
accent
#FF29EA
background
#F4F3F5
surface
#E7E5EA
border
#C3C1C6
text
#010005
muted
#777779

Preview Lab

Preview with #040029

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

Preview Lab → · Contrast checker → · Palette generator →

#040029 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva