#040128#040128

#040128 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.6% C 0.080 H 274.3°. Best body text is #FFFFFF at 20.19:1 contrast (WCAG AA passes).

Color values

HEX#040128
RGBrgb(4, 1, 40)
HSLhsl(245, 95%, 8%)
HSVhsv(245, 98%, 16%)
CMYKcmyk(90%, 97.5%, 0%, 84.3%)
CIE-LABlab(1.81, 10.37, -22.25)
CIE-LCHlch(1.81, 24.55, 294.97°)
OKLaboklab(13.55% 0.0061 -0.0801)
OKLCHoklch(13.55% 0.08 274.3)
XYZxyz(0.4438, 0.2007, 2.0224)
Luminance0.0020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040128 #252801
analogous
#011128 #040128 #170128
triadic
#040128 #280401 #012804
tetradic
#040128 #280111 #252801 #012817
square
#040128 #280111 #252801 #012817
split-complementary
#040128 #281701 #112801
monochromatic
#03011E #03011E #040128 #0A0264 #10049F

Accessibility & contrast

On white

20.19
#040128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040128
20.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040128#FFFFFF#000000##FFFFFF
##0401281.0020.191.0420.19
#FFFFFF20.191.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000829
Deuteranopia (green-blind)
#000527
Tritanopia (blue-blind)
#000B13
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #040128;
/* rgb */ color: rgb(4, 1, 40);
/* oklch */ color: oklch(13.6% 0.080 274.3);
Tailwind
colors: {
  custom: {
    50: '#484762',
    500: '#040128',
    950: '#000000',
  },
}
SCSS
$custom: #040128;
$custom-light: #484762;
$custom-dark: #000000;
JSON
{
  "hex": "#040128",
  "rgb": {
    "r": 4,
    "g": 1,
    "b": 40
  },
  "hsl": {
    "h": 244.615,
    "s": 95.122,
    "l": 8.039
  },
  "oklch": {
    "l": 0.1355,
    "c": 0.08037,
    "h": 274.3
  },
  "luminance": 0.00201
}

Semantic roles & 50–950 ramp

primary
#040128
secondary
#686F16
accent
#FF29EF
background
#F4F3F5
surface
#E7E5EA
border
#C3C1C6
text
#010005
muted
#777779

Preview Lab

Preview with #040128

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

Preview Lab → · Contrast checker → · Palette generator →

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