#040127#040127

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

Color values

HEX#040127
RGBrgb(4, 1, 39)
HSLhsl(245, 95%, 8%)
HSVhsv(245, 97%, 15%)
CMYKcmyk(89.7%, 97.4%, 0%, 84.7%)
CIE-LABlab(1.75, 9.94, -21.58)
CIE-LCHlch(1.75, 23.75, 294.73°)
OKLaboklab(13.39% 0.0065 -0.0787)
OKLCHoklch(13.39% 0.079 274.7)
XYZxyz(0.4270, 0.1940, 1.9340)
Luminance0.0019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040127 #242701
analogous
#011127 #040127 #170127
triadic
#040127 #270401 #012704
tetradic
#040127 #270111 #242701 #012717
square
#040127 #270111 #242701 #012717
split-complementary
#040127 #271701 #112701
monochromatic
#03011E #03011E #040127 #0A0363 #10049E

Accessibility & contrast

On white

20.22
#040127 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040127
20.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040127#FFFFFF#000000##FFFFFF
##0401271.0020.221.0420.22
#FFFFFF20.221.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000828
Deuteranopia (green-blind)
#000526
Tritanopia (blue-blind)
#000A13
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #040127;
/* rgb */ color: rgb(4, 1, 39);
/* oklch */ color: oklch(13.4% 0.079 274.7);
Tailwind
colors: {
  custom: {
    50: '#484761',
    500: '#040127',
    950: '#000000',
  },
}
SCSS
$custom: #040127;
$custom-light: #484761;
$custom-dark: #000000;
JSON
{
  "hex": "#040127",
  "rgb": {
    "r": 4,
    "g": 1,
    "b": 39
  },
  "hsl": {
    "h": 244.737,
    "s": 95,
    "l": 7.843
  },
  "oklch": {
    "l": 0.13392,
    "c": 0.07897,
    "h": 274.7
  },
  "luminance": 0.00194
}

Semantic roles & 50–950 ramp

primary
#040127
secondary
#676E16
accent
#FF29EE
background
#F4F3F5
surface
#E7E5EA
border
#C3C1C6
text
#010005
muted
#777779

Preview Lab

Preview with #040127

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

Preview Lab → · Contrast checker → · Palette generator →

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