#02041C#02041C

#02041C is a very dark, muted blue. Relative luminance 0.002; OKLCH L 12.7% C 0.055 H 269.4°. Best body text is #FFFFFF at 20.25:1 contrast (WCAG AA passes).

Color values

HEX#02041C
RGBrgb(2, 4, 28)
HSLhsl(235, 87%, 6%)
HSVhsv(235, 93%, 11%)
CMYKcmyk(92.9%, 85.7%, 0%, 89%)
CIE-LABlab(1.66, 4.24, -13.04)
CIE-LCHlch(1.66, 13.71, 288.02°)
OKLaboklab(12.65% -0.0006 -0.055)
OKLCHoklch(12.65% 0.055 269.4)
XYZxyz(0.2780, 0.1835, 1.1192)
Luminance0.0018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02041C #1C1A02
analogous
#02111C #02041C #0D021C
triadic
#02041C #1C0204 #041C02
tetradic
#02041C #1C0211 #1C1A02 #021C0D
square
#02041C #1C0211 #1C1A02 #021C0D
split-complementary
#02041C #1C0D02 #111C02
monochromatic
#02041D #02041D #02041D #060C55 #0A148E

Accessibility & contrast

On white

20.25
#02041C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#02041C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02041C
20.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02041C#FFFFFF#000000##FFFFFF
##02041C1.0020.251.0420.25
#FFFFFF20.251.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00071D
Deuteranopia (green-blind)
#00051C
Tritanopia (blue-blind)
#00090E
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #02041c;
/* rgb */ color: rgb(2, 4, 28);
/* oklch */ color: oklch(12.7% 0.055 269.4);
Tailwind
colors: {
  custom: {
    50: '#474858',
    500: '#02041c',
    950: '#000000',
  },
}
SCSS
$custom: #02041c;
$custom-light: #474858;
$custom-dark: #000000;
JSON
{
  "hex": "#02041c",
  "rgb": {
    "r": 2,
    "g": 4,
    "b": 28
  },
  "hsl": {
    "h": 235.385,
    "s": 86.667,
    "l": 5.882
  },
  "oklch": {
    "l": 0.12653,
    "c": 0.05496,
    "h": 269.4
  },
  "luminance": 0.00184
}

Semantic roles & 50–950 ramp

primary
#02041C
secondary
#625C18
accent
#ED2BFD
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000003
muted
#777778

Preview Lab

Preview with #02041C

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

Preview Lab → · Contrast checker → · Palette generator →

#02041C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva