#040229#040229

#040229 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 14.1% C 0.079 H 273.5°. Best body text is #FFFFFF at 20.08:1 contrast (WCAG AA passes).

Color values

HEX#040229
RGBrgb(4, 2, 41)
HSLhsl(243, 91%, 8%)
HSVhsv(243, 95%, 16%)
CMYKcmyk(90.2%, 95.1%, 0%, 83.9%)
CIE-LABlab(2.07, 10.40, -22.62)
CIE-LCHlch(2.07, 24.90, 294.70°)
OKLaboklab(14.05% 0.0048 -0.0793)
OKLCHoklch(14.05% 0.079 273.5)
XYZxyz(0.4719, 0.2293, 2.1168)
Luminance0.0023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040229 #272902
analogous
#021329 #040229 #170229
triadic
#040229 #290402 #022904
tetradic
#040229 #290213 #272902 #022917
square
#040229 #290213 #272902 #022917
split-complementary
#040229 #291702 #132902
monochromatic
#03011D #03011D #040229 #0A0563 #0F089E

Accessibility & contrast

On white

20.08
#040229 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#040229 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040229
20.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040229#FFFFFF#000000##FFFFFF
##0402291.0020.081.0520.08
#FFFFFF20.081.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00092A
Deuteranopia (green-blind)
#000628
Tritanopia (blue-blind)
#000C14
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #040229;
/* rgb */ color: rgb(4, 2, 41);
/* oklch */ color: oklch(14.1% 0.079 273.5);
Tailwind
colors: {
  custom: {
    50: '#494763',
    500: '#040229',
    950: '#000000',
  },
}
SCSS
$custom: #040229;
$custom-light: #494763;
$custom-dark: #000000;
JSON
{
  "hex": "#040229",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 41
  },
  "hsl": {
    "h": 243.077,
    "s": 90.698,
    "l": 8.431
  },
  "oklch": {
    "l": 0.1405,
    "c": 0.0794,
    "h": 273.5
  },
  "luminance": 0.00229
}

Semantic roles & 50–950 ramp

primary
#040229
secondary
#6A6E19
accent
#FF29F4
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#010005
muted
#777779

Preview Lab

Preview with #040229

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

Preview Lab → · Contrast checker → · Palette generator →

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