#040023#040023

#040023 is a very dark, moderate blue. Relative luminance 0.001; OKLCH L 12.3% C 0.076 H 277.2°. Best body text is #FFFFFF at 20.40:1 contrast (WCAG AA passes).

Color values

HEX#040023
RGBrgb(4, 0, 35)
HSLhsl(247, 100%, 7%)
HSVhsv(247, 100%, 14%)
CMYKcmyk(88.6%, 100%, 0%, 86.3%)
CIE-LABlab(1.33, 8.75, -19.11)
CIE-LCHlch(1.33, 21.01, 294.59°)
OKLaboklab(12.35% 0.0096 -0.0757)
OKLCHoklch(12.35% 0.076 277.2)
XYZxyz(0.3533, 0.1471, 1.5996)
Luminance0.0015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040023 #1F2300
analogous
#000E23 #040023 #160023
triadic
#040023 #230400 #002304
tetradic
#040023 #23000E #1F2300 #002316
square
#040023 #23000E #1F2300 #002316
split-complementary
#040023 #231600 #0E2300
monochromatic
#03001F #03001F #040023 #0B0060 #12009D

Accessibility & contrast

On white

20.40
#040023 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040023
20.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040023#FFFFFF#000000##FFFFFF
##0400231.0020.401.0320.40
#FFFFFF20.401.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000624
Deuteranopia (green-blind)
#000422
Tritanopia (blue-blind)
#000810
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #040023;
/* rgb */ color: rgb(4, 0, 35);
/* oklch */ color: oklch(12.3% 0.076 277.2);
Tailwind
colors: {
  custom: {
    50: '#48475e',
    500: '#040023',
    950: '#000000',
  },
}
SCSS
$custom: #040023;
$custom-light: #48475e;
$custom-dark: #000000;
JSON
{
  "hex": "#040023",
  "rgb": {
    "r": 4,
    "g": 0,
    "b": 35
  },
  "hsl": {
    "h": 246.857,
    "s": 100,
    "l": 6.863
  },
  "oklch": {
    "l": 0.12347,
    "c": 0.07626,
    "h": 277.2
  },
  "luminance": 0.00147
}

Semantic roles & 50–950 ramp

primary
#040023
secondary
#626C13
accent
#FF29E7
background
#F4F3F5
surface
#E6E5E9
border
#C2C1C5
text
#000004
muted
#777779

Preview Lab

Preview with #040023

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

Preview Lab → · Contrast checker → · Palette generator →

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