#02071B#02071B

#02071B is a very dark, muted blue. Relative luminance 0.002; OKLCH L 13.7% C 0.046 H 264.2°. Best body text is #FFFFFF at 20.02:1 contrast (WCAG AA passes).

Color values

HEX#02071B
RGBrgb(2, 7, 27)
HSLhsl(228, 86%, 6%)
HSVhsv(228, 93%, 11%)
CMYKcmyk(92.6%, 74.1%, 0%, 89.4%)
CIE-LABlab(2.20, 2.74, -11.43)
CIE-LCHlch(2.20, 11.75, 283.48°)
OKLaboklab(13.67% -0.0046 -0.0458)
OKLCHoklch(13.67% 0.046 264.2)
XYZxyz(0.2988, 0.2440, 1.0680)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02071B #1B1602
analogous
#02131B #02071B #09021B
triadic
#02071B #1B0207 #071B02
tetradic
#02071B #1B0213 #1B1602 #021B09
square
#02071B #1B0213 #1B1602 #021B09
split-complementary
#02071B #1B0902 #131B02
monochromatic
#02071C #02071C #02071C #061654 #0A258D

Accessibility & contrast

On white

20.02
#02071B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02071B
20.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02071B#FFFFFF#000000##FFFFFF
##02071B1.0020.021.0520.02
#FFFFFF20.021.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00091C
Deuteranopia (green-blind)
#00071B
Tritanopia (blue-blind)
#000C0F
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #02071b;
/* rgb */ color: rgb(2, 7, 27);
/* oklch */ color: oklch(13.7% 0.046 264.2);
Tailwind
colors: {
  custom: {
    50: '#474a57',
    500: '#02071b',
    950: '#000000',
  },
}
SCSS
$custom: #02071b;
$custom-light: #474a57;
$custom-dark: #000000;
JSON
{
  "hex": "#02071b",
  "rgb": {
    "r": 2,
    "g": 7,
    "b": 27
  },
  "hsl": {
    "h": 228,
    "s": 86.207,
    "l": 5.686
  },
  "oklch": {
    "l": 0.13672,
    "c": 0.04599,
    "h": 264.2
  },
  "luminance": 0.00244
}

Semantic roles & 50–950 ramp

primary
#02071B
secondary
#615218
accent
#D32BFC
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #02071B

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

Preview Lab → · Contrast checker → · Palette generator →

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