#020408#020408

#020408 is a very dark, near-neutral blue. Relative luminance 0.001; OKLCH L 10.5% C 0.015 H 255.9°. Best body text is #FFFFFF at 20.52:1 contrast (WCAG AA passes).

Color values

HEX#020408
RGBrgb(2, 4, 8)
HSLhsl(220, 60%, 2%)
HSVhsv(220, 75%, 3%)
CMYKcmyk(75%, 50%, 0%, 96.9%)
CIE-LABlab(1.06, 0.03, -1.70)
CIE-LCHlch(1.06, 1.70, 271.12°)
OKLaboklab(10.54% -0.0036 -0.0144)
OKLCHoklch(10.54% 0.015 255.9)
XYZxyz(0.1123, 0.1173, 0.2464)
Luminance0.0012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020408 #080602
analogous
#020708 #020408 #030208
triadic
#020408 #080204 #040802
tetradic
#020408 #080207 #080602 #020803
square
#020408 #080207 #080602 #020803
split-complementary
#020408 #080302 #070802
monochromatic
#060C18 #060C18 #060C18 #0E1C39 #1A356A

Accessibility & contrast

On white

20.52
#020408 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.02
#020408 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020408
20.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020408#FFFFFF#000000##FFFFFF
##0204081.0020.521.0220.52
#FFFFFF20.521.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#030408
Deuteranopia (green-blind)
#020408
Tritanopia (blue-blind)
#010505
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #020408;
/* rgb */ color: rgb(2, 4, 8);
/* oklch */ color: oklch(10.5% 0.015 255.9);
Tailwind
colors: {
  custom: {
    50: '#47484a',
    500: '#020408',
    950: '#000000',
  },
}
SCSS
$custom: #020408;
$custom-light: #47484a;
$custom-dark: #000000;
JSON
{
  "hex": "#020408",
  "rgb": {
    "r": 2,
    "g": 4,
    "b": 8
  },
  "hsl": {
    "h": 220,
    "s": 60,
    "l": 1.961
  },
  "oklch": {
    "l": 0.10543,
    "c": 0.01489,
    "h": 255.9
  },
  "luminance": 0.00117
}

Semantic roles & 50–950 ramp

primary
#020408
secondary
#483A1E
accent
#AE45E3
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #020408

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

Preview Lab → · Contrast checker → · Palette generator →

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