#040124#040124

#040124 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 12.9% C 0.075 H 276.0°. Best body text is #FFFFFF at 20.29:1 contrast (WCAG AA passes).

Color values

HEX#040124
RGBrgb(4, 1, 36)
HSLhsl(245, 95%, 7%)
HSVhsv(245, 97%, 14%)
CMYKcmyk(88.9%, 97.2%, 0%, 85.9%)
CIE-LABlab(1.58, 8.73, -19.51)
CIE-LCHlch(1.58, 21.37, 294.11°)
OKLaboklab(12.92% 0.0078 -0.0743)
OKLCHoklch(12.92% 0.075 276)
XYZxyz(0.3793, 0.1749, 1.6825)
Luminance0.0018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040124 #212401
analogous
#011024 #040124 #160124
triadic
#040124 #240401 #012404
tetradic
#040124 #240110 #212401 #012416
square
#040124 #240110 #212401 #012416
split-complementary
#040124 #241601 #102401
monochromatic
#03011E #03011E #040124 #0B0360 #11049B

Accessibility & contrast

On white

20.29
#040124 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#040124 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040124
20.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040124#FFFFFF#000000##FFFFFF
##0401241.0020.291.0320.29
#FFFFFF20.291.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000725
Deuteranopia (green-blind)
#000523
Tritanopia (blue-blind)
#000911
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #040124;
/* rgb */ color: rgb(4, 1, 36);
/* oklch */ color: oklch(12.9% 0.075 276.0);
Tailwind
colors: {
  custom: {
    50: '#48475e',
    500: '#040124',
    950: '#000000',
  },
}
SCSS
$custom: #040124;
$custom-light: #48475e;
$custom-dark: #000000;
JSON
{
  "hex": "#040124",
  "rgb": {
    "r": 4,
    "g": 1,
    "b": 36
  },
  "hsl": {
    "h": 245.143,
    "s": 94.595,
    "l": 7.255
  },
  "oklch": {
    "l": 0.12919,
    "c": 0.07471,
    "h": 276
  },
  "luminance": 0.00175
}

Semantic roles & 50–950 ramp

primary
#040124
secondary
#646B16
accent
#FF29ED
background
#F4F3F5
surface
#E6E5E9
border
#C2C1C5
text
#000004
muted
#777779

Preview Lab

Preview with #040124

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

Preview Lab → · Contrast checker → · Palette generator →

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