#040131#040131

#040131 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.0% C 0.093 H 271.6°. Best body text is #FFFFFF at 19.93:1 contrast (WCAG AA passes).

Color values

HEX#040131
RGBrgb(4, 1, 49)
HSLhsl(244, 96%, 10%)
HSVhsv(244, 98%, 19%)
CMYKcmyk(91.8%, 98%, 0%, 80.8%)
CIE-LABlab(2.43, 14.72, -28.12)
CIE-LCHlch(2.43, 31.74, 297.63°)
OKLaboklab(14.99% 0.0026 -0.0927)
OKLCHoklch(14.99% 0.093 271.6)
XYZxyz(0.6151, 0.2692, 2.9247)
Luminance0.0027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040131 #2E3101
analogous
#011631 #040131 #1C0131
triadic
#040131 #310401 #013104
tetradic
#040131 #310116 #2E3101 #01311C
square
#040131 #310116 #2E3101 #01311C
split-complementary
#040131 #311C01 #163101
monochromatic
#02011E #02011E #040131 #09026D #0E03A9

Accessibility & contrast

On white

19.93
#040131 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#040131 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040131
19.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040131#FFFFFF#000000##FFFFFF
##0401311.0019.931.0519.93
#FFFFFF19.931.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040131;
/* rgb */ color: rgb(4, 1, 49);
/* oklch */ color: oklch(15.0% 0.093 271.6);
Tailwind
colors: {
  custom: {
    50: '#4a4769',
    500: '#040131',
    950: '#000000',
  },
}
SCSS
$custom: #040131;
$custom-light: #4a4769;
$custom-dark: #000000;
JSON
{
  "hex": "#040131",
  "rgb": {
    "r": 4,
    "g": 1,
    "b": 49
  },
  "hsl": {
    "h": 243.75,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.14989,
    "c": 0.09272,
    "h": 271.6
  },
  "luminance": 0.00269
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #040131

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

Preview Lab → · Contrast checker → · Palette generator →

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