#02071A#02071A

#02071A is a very dark, muted blue. Relative luminance 0.002; OKLCH L 13.6% C 0.044 H 263.8°. Best body text is #FFFFFF at 20.04:1 contrast (WCAG AA passes).

Color values

HEX#02071A
RGBrgb(2, 7, 26)
HSLhsl(228, 86%, 5%)
HSVhsv(228, 92%, 10%)
CMYKcmyk(92.3%, 73.1%, 0%, 89.8%)
CIE-LABlab(2.16, 2.45, -10.68)
CIE-LCHlch(2.16, 10.96, 282.93°)
OKLaboklab(13.57% -0.0048 -0.0438)
OKLCHoklch(13.57% 0.044 263.8)
XYZxyz(0.2874, 0.2394, 1.0081)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02071A #1A1502
analogous
#02131A #02071A #09021A
triadic
#02071A #1A0207 #071A02
tetradic
#02071A #1A0213 #1A1502 #021A09
square
#02071A #1A0213 #1A1502 #021A09
split-complementary
#02071A #1A0902 #131A02
monochromatic
#02081C #02081C #02081C #061653 #0B268C

Accessibility & contrast

On white

20.04
#02071A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#02071A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02071A
20.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02071A#FFFFFF#000000##FFFFFF
##02071A1.0020.041.0520.04
#FFFFFF20.041.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01091B
Deuteranopia (green-blind)
#00071A
Tritanopia (blue-blind)
#000B0F
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #02071a;
/* rgb */ color: rgb(2, 7, 26);
/* oklch */ color: oklch(13.6% 0.044 263.8);
Tailwind
colors: {
  custom: {
    50: '#474a56',
    500: '#02071a',
    950: '#000000',
  },
}
SCSS
$custom: #02071a;
$custom-light: #474a56;
$custom-dark: #000000;
JSON
{
  "hex": "#02071a",
  "rgb": {
    "r": 2,
    "g": 7,
    "b": 26
  },
  "hsl": {
    "h": 227.5,
    "s": 85.714,
    "l": 5.49
  },
  "oklch": {
    "l": 0.13567,
    "c": 0.04411,
    "h": 263.8
  },
  "luminance": 0.00239
}

Semantic roles & 50–950 ramp

primary
#02071A
secondary
#605118
accent
#D12CFC
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #02071A

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

Preview Lab → · Contrast checker → · Palette generator →

#02071A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva