#040132#040132

#040132 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.1% C 0.094 H 271.4°. Best body text is #FFFFFF at 19.89:1 contrast (WCAG AA passes).

Color values

HEX#040132
RGBrgb(4, 1, 50)
HSLhsl(244, 96%, 10%)
HSVhsv(244, 98%, 20%)
CMYKcmyk(92%, 98%, 0%, 80.4%)
CIE-LABlab(2.51, 15.26, -28.74)
CIE-LCHlch(2.51, 32.54, 297.97°)
OKLaboklab(15.15% 0.0022 -0.094)
OKLCHoklch(15.15% 0.094 271.4)
XYZxyz(0.6365, 0.2777, 3.0371)
Luminance0.0028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040132 #2F3201
analogous
#011732 #040132 #1C0132
triadic
#040132 #320401 #013204
tetradic
#040132 #320117 #2F3201 #01321C
square
#040132 #320117 #2F3201 #01321C
split-complementary
#040132 #321C01 #173201
monochromatic
#02011E #02011E #040132 #09026E #0E03AA

Accessibility & contrast

On white

19.89
#040132 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040132
19.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040132#FFFFFF#000000##FFFFFF
##0401321.0019.891.0619.89
#FFFFFF19.891.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C33
Deuteranopia (green-blind)
#000731
Tritanopia (blue-blind)
#000F19
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #040132;
/* rgb */ color: rgb(4, 1, 50);
/* oklch */ color: oklch(15.1% 0.094 271.4);
Tailwind
colors: {
  custom: {
    50: '#4b476a',
    500: '#040132',
    950: '#000000',
  },
}
SCSS
$custom: #040132;
$custom-light: #4b476a;
$custom-dark: #000000;
JSON
{
  "hex": "#040132",
  "rgb": {
    "r": 4,
    "g": 1,
    "b": 50
  },
  "hsl": {
    "h": 243.673,
    "s": 96.078,
    "l": 10
  },
  "oklch": {
    "l": 0.15149,
    "c": 0.09406,
    "h": 271.4
  },
  "luminance": 0.00278
}

Semantic roles & 50–950 ramp

primary
#040132
secondary
#727717
accent
#FF29F2
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010006
muted
#77777A

Preview Lab

Preview with #040132

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

Preview Lab → · Contrast checker → · Palette generator →

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