#041229#041229

#041229 is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.5% C 0.052 H 258.3°. Best body text is #FFFFFF at 18.69:1 contrast (WCAG AA passes).

Color values

HEX#041229
RGBrgb(4, 18, 41)
HSLhsl(217, 82%, 9%)
HSVhsv(217, 90%, 16%)
CMYKcmyk(90.2%, 56.1%, 0%, 83.9%)
CIE-LABlab(5.59, 3.23, -17.10)
CIE-LCHlch(5.59, 17.41, 280.68°)
OKLaboklab(18.47% -0.0105 -0.0505)
OKLCHoklch(18.47% 0.052 258.3)
XYZxyz(0.6665, 0.6184, 2.1816)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041229 #291B04
analogous
#042529 #041229 #090429
triadic
#041229 #290412 #122904
tetradic
#041229 #290425 #291B04 #042909
square
#041229 #290425 #291B04 #042909
split-complementary
#041229 #290904 #252904
monochromatic
#030C1C #030C1C #041229 #092A61 #0F4399

Accessibility & contrast

On white

18.69
#041229 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#041229 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041229
18.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041229#FFFFFF#000000##FFFFFF
##0412291.0018.691.1218.69
#FFFFFF18.691.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07142A
Deuteranopia (green-blind)
#021129
Tritanopia (blue-blind)
#00171B
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #041229;
/* rgb */ color: rgb(4, 18, 41);
/* oklch */ color: oklch(18.5% 0.052 258.3);
Tailwind
colors: {
  custom: {
    50: '#494f63',
    500: '#041229',
    950: '#000000',
  },
}
SCSS
$custom: #041229;
$custom-light: #494f63;
$custom-dark: #000000;
JSON
{
  "hex": "#041229",
  "rgb": {
    "r": 4,
    "g": 18,
    "b": 41
  },
  "hsl": {
    "h": 217.297,
    "s": 82.222,
    "l": 8.824
  },
  "oklch": {
    "l": 0.18472,
    "c": 0.05153,
    "h": 258.3
  },
  "luminance": 0.00619
}

Semantic roles & 50–950 ramp

primary
#041229
secondary
#6C4E1D
accent
#AC2FF9
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010205
muted
#777879

Preview Lab

Preview with #041229

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

Preview Lab → · Contrast checker → · Palette generator →

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