#02041F#02041F

#02041F is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.0% C 0.060 H 269.2°. Best body text is #FFFFFF at 20.20:1 contrast (WCAG AA passes).

Color values

HEX#02041F
RGBrgb(2, 4, 31)
HSLhsl(236, 88%, 6%)
HSVhsv(236, 94%, 12%)
CMYKcmyk(93.5%, 87.1%, 0%, 87.8%)
CIE-LABlab(1.79, 5.20, -15.24)
CIE-LCHlch(1.79, 16.10, 288.84°)
OKLaboklab(13.05% -0.0009 -0.0602)
OKLCHoklch(13.05% 0.06 269.2)
XYZxyz(0.3157, 0.1986, 1.3178)
Luminance0.0020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02041F #1F1D02
analogous
#02131F #02041F #0F021F
triadic
#02041F #1F0204 #041F02
tetradic
#02041F #1F0213 #1F1D02 #021F0F
square
#02041F #1F0213 #1F1D02 #021F0F
split-complementary
#02041F #1F0F02 #131F02
monochromatic
#02041D #02041D #02041F #060B58 #091392

Accessibility & contrast

On white

20.20
#02041F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02041F
20.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02041F#FFFFFF#000000##FFFFFF
##02041F1.0020.201.0420.20
#FFFFFF20.201.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000820
Deuteranopia (green-blind)
#00051E
Tritanopia (blue-blind)
#000A10
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #02041f;
/* rgb */ color: rgb(2, 4, 31);
/* oklch */ color: oklch(13.0% 0.060 269.2);
Tailwind
colors: {
  custom: {
    50: '#47485a',
    500: '#02041f',
    950: '#000000',
  },
}
SCSS
$custom: #02041f;
$custom-light: #47485a;
$custom-dark: #000000;
JSON
{
  "hex": "#02041f",
  "rgb": {
    "r": 2,
    "g": 4,
    "b": 31
  },
  "hsl": {
    "h": 235.862,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.13045,
    "c": 0.06017,
    "h": 269.2
  },
  "luminance": 0.00199
}

Semantic roles & 50–950 ramp

primary
#02041F
secondary
#655F18
accent
#EF2AFE
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #02041F

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

Preview Lab → · Contrast checker → · Palette generator →

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