#040323#040323

#040323 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.5% C 0.068 H 274.7°. Best body text is #FFFFFF at 20.15:1 contrast (WCAG AA passes).

Color values

HEX#040323
RGBrgb(4, 3, 35)
HSLhsl(242, 84%, 7%)
HSVhsv(242, 91%, 14%)
CMYKcmyk(88.6%, 91.4%, 0%, 86.3%)
CIE-LABlab(1.92, 7.55, -18.20)
CIE-LCHlch(1.92, 19.70, 292.52°)
OKLaboklab(13.52% 0.0056 -0.0676)
OKLCHoklch(13.52% 0.068 274.7)
XYZxyz(0.3859, 0.2122, 1.6104)
Luminance0.0021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040323 #222303
analogous
#031223 #040323 #140323
triadic
#040323 #230403 #032304
tetradic
#040323 #230312 #222303 #032314
square
#040323 #230312 #222303 #032314
split-complementary
#040323 #231403 #122303
monochromatic
#03021C #03021C #040323 #0A085B #110D94

Accessibility & contrast

On white

20.15
#040323 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040323
20.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040323#FFFFFF#000000##FFFFFF
##0403231.0020.151.0420.15
#FFFFFF20.151.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000824
Deuteranopia (green-blind)
#000622
Tritanopia (blue-blind)
#000B11
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #040323;
/* rgb */ color: rgb(4, 3, 35);
/* oklch */ color: oklch(13.5% 0.068 274.7);
Tailwind
colors: {
  custom: {
    50: '#48485e',
    500: '#040323',
    950: '#000000',
  },
}
SCSS
$custom: #040323;
$custom-light: #48485e;
$custom-dark: #000000;
JSON
{
  "hex": "#040323",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 35
  },
  "hsl": {
    "h": 241.875,
    "s": 84.211,
    "l": 7.451
  },
  "oklch": {
    "l": 0.13521,
    "c": 0.06788,
    "h": 274.7
  },
  "luminance": 0.00212
}

Semantic roles & 50–950 ramp

primary
#040323
secondary
#65671B
accent
#FA2DF4
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #040323

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

Preview Lab → · Contrast checker → · Palette generator →

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