#040423#040423

#040423 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.9% C 0.065 H 273.8°. Best body text is #FFFFFF at 20.06:1 contrast (WCAG AA passes).

Color values

HEX#040423
RGBrgb(4, 4, 35)
HSLhsl(240, 79%, 8%)
HSVhsv(240, 89%, 14%)
CMYKcmyk(88.6%, 88.6%, 0%, 86.3%)
CIE-LABlab(2.11, 7.14, -17.90)
CIE-LCHlch(2.11, 19.27, 291.76°)
OKLaboklab(13.87% 0.0043 -0.0653)
OKLCHoklch(13.87% 0.065 273.8)
XYZxyz(0.3968, 0.2340, 1.6140)
Luminance0.0023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040423 #232304
analogous
#041323 #040423 #130423
triadic
#040423 #230404 #042304
tetradic
#040423 #230413 #232304 #042313
square
#040423 #230413 #232304 #042313
split-complementary
#040423 #231304 #132304
monochromatic
#03031B #03031B #040423 #0A0A5A #111191

Accessibility & contrast

On white

20.06
#040423 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#040423 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040423
20.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040423#FFFFFF#000000##FFFFFF
##0404231.0020.061.0520.06
#FFFFFF20.061.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000924
Deuteranopia (green-blind)
#000622
Tritanopia (blue-blind)
#000C12
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #040423;
/* rgb */ color: rgb(4, 4, 35);
/* oklch */ color: oklch(13.9% 0.065 273.8);
Tailwind
colors: {
  custom: {
    50: '#48485e',
    500: '#040423',
    950: '#000000',
  },
}
SCSS
$custom: #040423;
$custom-light: #48485e;
$custom-dark: #000000;
JSON
{
  "hex": "#040423",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 35
  },
  "hsl": {
    "h": 240,
    "s": 79.487,
    "l": 7.647
  },
  "oklch": {
    "l": 0.13871,
    "c": 0.06544,
    "h": 273.8
  },
  "luminance": 0.00234
}

Semantic roles & 50–950 ramp

primary
#040423
secondary
#66661D
accent
#F632F6
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #040423

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

Preview Lab → · Contrast checker → · Palette generator →

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