#040313#040313

#040313 is a very dark, muted blue. Relative luminance 0.001; OKLCH L 11.5% C 0.040 H 282.6°. Best body text is #FFFFFF at 20.44:1 contrast (WCAG AA passes).

Color values

HEX#040313
RGBrgb(4, 3, 19)
HSLhsl(244, 73%, 4%)
HSVhsv(244, 84%, 7%)
CMYKcmyk(78.9%, 84.2%, 0%, 92.5%)
CIE-LABlab(1.25, 2.83, -6.89)
CIE-LCHlch(1.25, 7.45, 292.31°)
OKLaboklab(11.48% 0.0087 -0.0392)
OKLCHoklch(11.48% 0.04 282.6)
XYZxyz(0.2001, 0.1379, 0.6320)
Luminance0.0014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040313 #121303
analogous
#030A13 #040313 #0C0313
triadic
#040313 #130403 #031304
tetradic
#040313 #13030A #121303 #03130C
square
#040313 #13030A #121303 #03130C
split-complementary
#040313 #130C03 #0A1303
monochromatic
#06041A #06041A #06041A #0F0B48 #1A147D

Accessibility & contrast

On white

20.44
#040313 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#040313 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040313
20.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040313#FFFFFF#000000##FFFFFF
##0403131.0020.441.0320.44
#FFFFFF20.441.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000514
Deuteranopia (green-blind)
#000413
Tritanopia (blue-blind)
#010609
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #040313;
/* rgb */ color: rgb(4, 3, 19);
/* oklch */ color: oklch(11.5% 0.040 282.6);
Tailwind
colors: {
  custom: {
    50: '#484850',
    500: '#040313',
    950: '#000000',
  },
}
SCSS
$custom: #040313;
$custom-light: #484850;
$custom-dark: #000000;
JSON
{
  "hex": "#040313",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 19
  },
  "hsl": {
    "h": 243.75,
    "s": 72.727,
    "l": 4.314
  },
  "oklch": {
    "l": 0.1148,
    "c": 0.04019,
    "h": 282.6
  },
  "luminance": 0.00138
}

Semantic roles & 50–950 ramp

primary
#040313
secondary
#52561C
accent
#EF38E4
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000002
muted
#777778

Preview Lab

Preview with #040313

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

Preview Lab → · Contrast checker → · Palette generator →

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