#02040E#02040E

#02040E is a very dark, muted blue. Relative luminance 0.001; OKLCH L 11.1% C 0.028 H 267.1°. Best body text is #FFFFFF at 20.46:1 contrast (WCAG AA passes).

Color values

HEX#02040E
RGBrgb(2, 4, 14)
HSLhsl(230, 75%, 3%)
HSVhsv(230, 86%, 5%)
CMYKcmyk(85.7%, 71.4%, 0%, 94.5%)
CIE-LABlab(1.19, 0.93, -4.15)
CIE-LCHlch(1.19, 4.25, 282.70°)
OKLaboklab(11.07% -0.0014 -0.0279)
OKLCHoklch(11.07% 0.028 267.1)
XYZxyz(0.1477, 0.1314, 0.4330)
Luminance0.0013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02040E #0E0C02
analogous
#020A0E #02040E #06020E
triadic
#02040E #0E0204 #040E02
tetradic
#02040E #0E020A #0E0C02 #020E06
square
#02040E #0E020A #0E0C02 #020E06
split-complementary
#02040E #0E0602 #0A0E02
monochromatic
#04081B #04081B #04081B #0A1344 #112379

Accessibility & contrast

On white

20.46
#02040E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#02040E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02040E
20.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02040E#FFFFFF#000000##FFFFFF
##02040E1.0020.461.0320.46
#FFFFFF20.461.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02050E
Deuteranopia (green-blind)
#01040E
Tritanopia (blue-blind)
#000607
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #02040e;
/* rgb */ color: rgb(2, 4, 14);
/* oklch */ color: oklch(11.1% 0.028 267.1);
Tailwind
colors: {
  custom: {
    50: '#47484d',
    500: '#02040e',
    950: '#000000',
  },
}
SCSS
$custom: #02040e;
$custom-light: #47484d;
$custom-dark: #000000;
JSON
{
  "hex": "#02040e",
  "rgb": {
    "r": 2,
    "g": 4,
    "b": 14
  },
  "hsl": {
    "h": 230,
    "s": 75,
    "l": 3.137
  },
  "oklch": {
    "l": 0.11065,
    "c": 0.02792,
    "h": 267.1
  },
  "luminance": 0.00131
}

Semantic roles & 50–950 ramp

primary
#02040E
secondary
#52491A
accent
#D236F2
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #02040E

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

Preview Lab → · Contrast checker → · Palette generator →

#02040E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva