#040708#040708

#040708 is a very dark, near-neutral cyan. Relative luminance 0.002; OKLCH L 12.4% C 0.008 H 216.4°. Best body text is #FFFFFF at 20.21:1 contrast (WCAG AA passes).

Color values

HEX#040708
RGBrgb(4, 7, 8)
HSLhsl(195, 33%, 2%)
HSVhsv(195, 50%, 3%)
CMYKcmyk(50%, 12.5%, 0%, 96.9%)
CIE-LABlab(1.76, -0.64, -0.65)
CIE-LCHlch(1.76, 0.92, 225.45°)
OKLaboklab(12.43% -0.0062 -0.0046)
OKLCHoklch(12.43% 0.008 216.4)
XYZxyz(0.1699, 0.1953, 0.2584)
Luminance0.0019 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040708 #080504
analogous
#040807 #040708 #040508
triadic
#040708 #080407 #070804
tetradic
#040708 #070408 #080504 #050804
square
#040708 #070408 #080504 #050804
split-complementary
#040708 #080405 #080704
monochromatic
#0A1214 #0A1214 #0A1214 #182B31 #2D4E5A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##040708#FFFFFF#000000##FFFFFF
##0407081.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)
#060708
Deuteranopia (green-blind)
#060608
Tritanopia (blue-blind)
#030707
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #040708;
/* rgb */ color: rgb(4, 7, 8);
/* oklch */ color: oklch(12.4% 0.008 216.4);
Tailwind
colors: {
  custom: {
    50: '#484a4a',
    500: '#040708',
    950: '#000000',
  },
}
SCSS
$custom: #040708;
$custom-light: #484a4a;
$custom-dark: #000000;
JSON
{
  "hex": "#040708",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 8
  },
  "hsl": {
    "h": 195,
    "s": 33.333,
    "l": 2.353
  },
  "oklch": {
    "l": 0.12429,
    "c": 0.0077,
    "h": 216.4
  },
  "luminance": 0.00195
}

Semantic roles & 50–950 ramp

primary
#040708
secondary
#402E28
accent
#795EC9
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000101
muted
#777777

Preview Lab

Preview with #040708

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

Preview Lab → · Contrast checker → · Palette generator →

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