#040136#040136

#040136 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.8% C 0.099 H 270.5°. Best body text is #FFFFFF at 19.76:1 contrast (WCAG AA passes).

Color values

HEX#040136
RGBrgb(4, 1, 54)
HSLhsl(243, 96%, 11%)
HSVhsv(243, 98%, 21%)
CMYKcmyk(92.6%, 98.1%, 0%, 78.8%)
CIE-LABlab(2.83, 17.55, -31.19)
CIE-LCHlch(2.83, 35.79, 299.36°)
OKLaboklab(15.79% 0.0008 -0.0993)
OKLCHoklch(15.79% 0.099 270.5)
XYZxyz(0.7266, 0.3138, 3.5116)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040136 #333601
analogous
#011836 #040136 #1E0136
triadic
#040136 #360401 #013604
tetradic
#040136 #360118 #333601 #01361E
square
#040136 #360118 #333601 #01361E
split-complementary
#040136 #361E01 #183601
monochromatic
#02011E #02011E #040136 #080272 #0D03AE

Accessibility & contrast

On white

19.76
#040136 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#040136 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040136
19.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040136#FFFFFF#000000##FFFFFF
##0401361.0019.761.0619.76
#FFFFFF19.761.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D37
Deuteranopia (green-blind)
#000835
Tritanopia (blue-blind)
#00111C
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #040136;
/* rgb */ color: rgb(4, 1, 54);
/* oklch */ color: oklch(15.8% 0.099 270.5);
Tailwind
colors: {
  custom: {
    50: '#4c466e',
    500: '#040136',
    950: '#000000',
  },
}
SCSS
$custom: #040136;
$custom-light: #4c466e;
$custom-dark: #000000;
JSON
{
  "hex": "#040136",
  "rgb": {
    "r": 4,
    "g": 1,
    "b": 54
  },
  "hsl": {
    "h": 243.396,
    "s": 96.364,
    "l": 10.784
  },
  "oklch": {
    "l": 0.15793,
    "c": 0.09935,
    "h": 270.5
  },
  "luminance": 0.00314
}

Semantic roles & 50–950 ramp

primary
#040136
secondary
#757B18
accent
#FF29F3
background
#F4F3F6
surface
#E7E5EC
border
#C3C1C7
text
#020007
muted
#78777A

Preview Lab

Preview with #040136

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

Preview Lab → · Contrast checker → · Palette generator →

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