#040333#040333

#040333 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.9% C 0.092 H 270.6°. Best body text is #FFFFFF at 19.70:1 contrast (WCAG AA passes).

Color values

HEX#040333
RGBrgb(4, 3, 51)
HSLhsl(241, 89%, 11%)
HSVhsv(241, 94%, 20%)
CMYKcmyk(92.2%, 94.1%, 0%, 80%)
CIE-LABlab(2.98, 15.01, -28.73)
CIE-LCHlch(2.98, 32.42, 297.58°)
OKLaboklab(15.85% 0.001 -0.0917)
OKLCHoklch(15.85% 0.092 270.6)
XYZxyz(0.6800, 0.3299, 3.1592)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040333 #323303
analogous
#031A33 #040333 #1C0333
triadic
#040333 #330403 #033304
tetradic
#040333 #33031A #323303 #03331C
square
#040333 #33031A #323303 #03331C
split-complementary
#040333 #331C03 #1A3303
monochromatic
#02021D #02021D #040333 #09066D #0D0AA7

Accessibility & contrast

On white

19.70
#040333 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#040333 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040333
19.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040333#FFFFFF#000000##FFFFFF
##0403331.0019.701.0719.70
#FFFFFF19.701.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D34
Deuteranopia (green-blind)
#000832
Tritanopia (blue-blind)
#00111B
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #040333;
/* rgb */ color: rgb(4, 3, 51);
/* oklch */ color: oklch(15.9% 0.092 270.6);
Tailwind
colors: {
  custom: {
    50: '#4b476b',
    500: '#040333',
    950: '#000000',
  },
}
SCSS
$custom: #040333;
$custom-light: #4b476b;
$custom-dark: #000000;
JSON
{
  "hex": "#040333",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 51
  },
  "hsl": {
    "h": 241.25,
    "s": 88.889,
    "l": 10.588
  },
  "oklch": {
    "l": 0.15851,
    "c": 0.0917,
    "h": 270.6
  },
  "luminance": 0.0033
}

Semantic roles & 50–950 ramp

primary
#040333
secondary
#74761C
accent
#FF29FB
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010007
muted
#77777A

Preview Lab

Preview with #040333

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

Preview Lab → · Contrast checker → · Palette generator →

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