#040320#040320

#040320 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.1% C 0.063 H 275.8°. Best body text is #FFFFFF at 20.21:1 contrast (WCAG AA passes).

Color values

HEX#040320
RGBrgb(4, 3, 32)
HSLhsl(242, 83%, 7%)
HSVhsv(242, 91%, 13%)
CMYKcmyk(87.5%, 90.6%, 0%, 87.5%)
CIE-LABlab(1.76, 6.46, -16.07)
CIE-LCHlch(1.76, 17.32, 291.91°)
OKLaboklab(13.11% 0.0064 -0.0627)
OKLCHoklch(13.11% 0.063 275.8)
XYZxyz(0.3433, 0.1952, 1.3858)
Luminance0.0019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040320 #1F2003
analogous
#031120 #040320 #130320
triadic
#040320 #200403 #032004
tetradic
#040320 #200311 #1F2003 #032013
square
#040320 #200311 #1F2003 #032013
split-complementary
#040320 #201303 #112003
monochromatic
#03031C #03031C #040320 #0B0858 #120D90

Accessibility & contrast

On white

20.21
#040320 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#040320 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040320
20.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040320#FFFFFF#000000##FFFFFF
##0403201.0020.211.0420.21
#FFFFFF20.211.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000821
Deuteranopia (green-blind)
#00051F
Tritanopia (blue-blind)
#000A10
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #040320;
/* rgb */ color: rgb(4, 3, 32);
/* oklch */ color: oklch(13.1% 0.063 275.8);
Tailwind
colors: {
  custom: {
    50: '#48485b',
    500: '#040320',
    950: '#000000',
  },
}
SCSS
$custom: #040320;
$custom-light: #48485b;
$custom-dark: #000000;
JSON
{
  "hex": "#040320",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 32
  },
  "hsl": {
    "h": 242.069,
    "s": 82.857,
    "l": 6.863
  },
  "oklch": {
    "l": 0.13108,
    "c": 0.06305,
    "h": 275.8
  },
  "luminance": 0.00195
}

Semantic roles & 50–950 ramp

primary
#040320
secondary
#62641B
accent
#F92FF2
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #040320

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

Preview Lab → · Contrast checker → · Palette generator →

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