#02071F#02071F

#02071F is a very dark, muted blue. Relative luminance 0.003; OKLCH L 14.1% C 0.053 H 265.4°. Best body text is #FFFFFF at 19.95:1 contrast (WCAG AA passes).

Color values

HEX#02071F
RGBrgb(2, 7, 31)
HSLhsl(230, 88%, 6%)
HSVhsv(230, 94%, 12%)
CMYKcmyk(93.5%, 77.4%, 0%, 87.8%)
CIE-LABlab(2.38, 3.99, -14.35)
CIE-LCHlch(2.38, 14.89, 285.55°)
OKLaboklab(14.11% -0.0043 -0.0532)
OKLCHoklch(14.11% 0.053 265.4)
XYZxyz(0.3482, 0.2638, 1.3286)
Luminance0.0026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02071F #1F1A02
analogous
#02161F #02071F #0C021F
triadic
#02071F #1F0207 #071F02
tetradic
#02071F #1F0216 #1F1A02 #021F0C
square
#02071F #1F0216 #1F1A02 #021F0C
split-complementary
#02071F #1F0C02 #161F02
monochromatic
#02061D #02061D #02071F #061458 #092192

Accessibility & contrast

On white

19.95
#02071F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02071F
19.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02071F#FFFFFF#000000##FFFFFF
##02071F1.0019.951.0519.95
#FFFFFF19.951.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A20
Deuteranopia (green-blind)
#00071F
Tritanopia (blue-blind)
#000D11
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #02071f;
/* rgb */ color: rgb(2, 7, 31);
/* oklch */ color: oklch(14.1% 0.053 265.4);
Tailwind
colors: {
  custom: {
    50: '#474a5a',
    500: '#02071f',
    950: '#000000',
  },
}
SCSS
$custom: #02071f;
$custom-light: #474a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#02071f",
  "rgb": {
    "r": 2,
    "g": 7,
    "b": 31
  },
  "hsl": {
    "h": 229.655,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.14112,
    "c": 0.05334,
    "h": 265.4
  },
  "luminance": 0.00264
}

Semantic roles & 50–950 ramp

primary
#02071F
secondary
#655818
accent
#D92AFE
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000104
muted
#777779

Preview Lab

Preview with #02071F

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

Preview Lab → · Contrast checker → · Palette generator →

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