#02071C#02071C

#02071C is a very dark, muted blue. Relative luminance 0.002; OKLCH L 13.8% C 0.048 H 264.6°. Best body text is #FFFFFF at 20.00:1 contrast (WCAG AA passes).

Color values

HEX#02071C
RGBrgb(2, 7, 28)
HSLhsl(228, 87%, 6%)
HSVhsv(228, 93%, 11%)
CMYKcmyk(92.9%, 75%, 0%, 89%)
CIE-LABlab(2.25, 3.04, -12.17)
CIE-LCHlch(2.25, 12.54, 284.01°)
OKLaboklab(13.78% -0.0045 -0.0476)
OKLCHoklch(13.78% 0.048 264.6)
XYZxyz(0.3105, 0.2487, 1.1300)
Luminance0.0025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02071C #1C1702
analogous
#02141C #02071C #0A021C
triadic
#02071C #1C0207 #071C02
tetradic
#02071C #1C0214 #1C1702 #021C0A
square
#02071C #1C0214 #1C1702 #021C0A
split-complementary
#02071C #1C0A02 #141C02
monochromatic
#02071D #02071D #02071D #061555 #0A248E

Accessibility & contrast

On white

20.00
#02071C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02071C
20.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02071C#FFFFFF#000000##FFFFFF
##02071C1.0020.001.0520.00
#FFFFFF20.001.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A1D
Deuteranopia (green-blind)
#00071C
Tritanopia (blue-blind)
#000C10
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #02071c;
/* rgb */ color: rgb(2, 7, 28);
/* oklch */ color: oklch(13.8% 0.048 264.6);
Tailwind
colors: {
  custom: {
    50: '#474a58',
    500: '#02071c',
    950: '#000000',
  },
}
SCSS
$custom: #02071c;
$custom-light: #474a58;
$custom-dark: #000000;
JSON
{
  "hex": "#02071c",
  "rgb": {
    "r": 2,
    "g": 7,
    "b": 28
  },
  "hsl": {
    "h": 228.462,
    "s": 86.667,
    "l": 5.882
  },
  "oklch": {
    "l": 0.1378,
    "c": 0.04785,
    "h": 264.6
  },
  "luminance": 0.00249
}

Semantic roles & 50–950 ramp

primary
#02071C
secondary
#625418
accent
#D42BFD
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #02071C

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

Preview Lab → · Contrast checker → · Palette generator →

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