#040332#040332

#040332 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.7% C 0.090 H 270.8°. Best body text is #FFFFFF at 19.73:1 contrast (WCAG AA passes).

Color values

HEX#040332
RGBrgb(4, 3, 50)
HSLhsl(241, 89%, 10%)
HSVhsv(241, 94%, 20%)
CMYKcmyk(92%, 94%, 0%, 80.4%)
CIE-LABlab(2.90, 14.46, -28.11)
CIE-LCHlch(2.90, 31.61, 297.21°)
OKLaboklab(15.7% 0.0013 -0.0903)
OKLCHoklch(15.7% 0.09 270.8)
XYZxyz(0.6582, 0.3212, 3.0443)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040332 #313203
analogous
#031932 #040332 #1B0332
triadic
#040332 #320403 #033204
tetradic
#040332 #320319 #313203 #03321B
square
#040332 #320319 #313203 #03321B
split-complementary
#040332 #321B03 #193203
monochromatic
#02021D #02021D #040332 #09066C #0D0AA5

Accessibility & contrast

On white

19.73
#040332 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040332
19.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040332#FFFFFF#000000##FFFFFF
##0403321.0019.731.0619.73
#FFFFFF19.731.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D33
Deuteranopia (green-blind)
#000831
Tritanopia (blue-blind)
#00111A
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #040332;
/* rgb */ color: rgb(4, 3, 50);
/* oklch */ color: oklch(15.7% 0.090 270.8);
Tailwind
colors: {
  custom: {
    50: '#4b476a',
    500: '#040332',
    950: '#000000',
  },
}
SCSS
$custom: #040332;
$custom-light: #4b476a;
$custom-dark: #000000;
JSON
{
  "hex": "#040332",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 50
  },
  "hsl": {
    "h": 241.277,
    "s": 88.679,
    "l": 10.392
  },
  "oklch": {
    "l": 0.15701,
    "c": 0.09029,
    "h": 270.8
  },
  "luminance": 0.00321
}

Semantic roles & 50–950 ramp

primary
#040332
secondary
#73751B
accent
#FF29FA
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #040332

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

Preview Lab → · Contrast checker → · Palette generator →

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