#040126#040126

#040126 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.2% C 0.078 H 275.1°. Best body text is #FFFFFF at 20.24:1 contrast (WCAG AA passes).

Color values

HEX#040126
RGBrgb(4, 1, 38)
HSLhsl(245, 95%, 8%)
HSVhsv(245, 97%, 15%)
CMYKcmyk(89.5%, 97.4%, 0%, 85.1%)
CIE-LABlab(1.69, 9.53, -20.89)
CIE-LCHlch(1.69, 22.96, 294.51°)
OKLaboklab(13.23% 0.0069 -0.0772)
OKLCHoklch(13.23% 0.078 275.1)
XYZxyz(0.4107, 0.1874, 1.8479)
Luminance0.0019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040126 #232601
analogous
#011026 #040126 #160126
triadic
#040126 #260401 #012604
tetradic
#040126 #260110 #232601 #012616
square
#040126 #260110 #232601 #012616
split-complementary
#040126 #261601 #102601
monochromatic
#03011E #03011E #040126 #0A0362 #11049D

Accessibility & contrast

On white

20.24
#040126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040126
20.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040126#FFFFFF#000000##FFFFFF
##0401261.0020.241.0420.24
#FFFFFF20.241.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000827
Deuteranopia (green-blind)
#000525
Tritanopia (blue-blind)
#000A12
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #040126;
/* rgb */ color: rgb(4, 1, 38);
/* oklch */ color: oklch(13.2% 0.078 275.1);
Tailwind
colors: {
  custom: {
    50: '#484760',
    500: '#040126',
    950: '#000000',
  },
}
SCSS
$custom: #040126;
$custom-light: #484760;
$custom-dark: #000000;
JSON
{
  "hex": "#040126",
  "rgb": {
    "r": 4,
    "g": 1,
    "b": 38
  },
  "hsl": {
    "h": 244.865,
    "s": 94.872,
    "l": 7.647
  },
  "oklch": {
    "l": 0.13234,
    "c": 0.07755,
    "h": 275.1
  },
  "luminance": 0.00187
}

Semantic roles & 50–950 ramp

primary
#040126
secondary
#666D16
accent
#FF29EE
background
#F4F3F5
surface
#E7E5E9
border
#C3C1C5
text
#010005
muted
#777779

Preview Lab

Preview with #040126

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

Preview Lab → · Contrast checker → · Palette generator →

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