#02270F#02270F

#02270F is a very dark, moderate green. Relative luminance 0.015; OKLCH L 24.0% C 0.061 H 151.1°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#02270F
RGBrgb(2, 39, 15)
HSLhsl(141, 90%, 8%)
HSVhsv(141, 95%, 15%)
CMYKcmyk(94.9%, 0%, 61.5%, 84.7%)
CIE-LABlab(12.60, -20.02, 11.75)
CIE-LCHlch(12.60, 23.22, 149.60°)
OKLaboklab(23.98% -0.0537 0.0297)
OKLCHoklch(23.98% 0.061 151.1)
XYZxyz(0.8367, 1.4983, 0.6970)
Luminance0.0150 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02270F #27021A
analogous
#072702 #02270F #022721
triadic
#02270F #0F0227 #270F02
tetradic
#02270F #020727 #27021A #272102
square
#02270F #020727 #27021A #272102
split-complementary
#02270F #210227 #270207
monochromatic
#011D0B #011D0B #02270F #056125 #089B3C

Accessibility & contrast

On white

16.16
#02270F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#02270F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02270F
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02270F#FFFFFF#000000##FFFFFF
##02270F1.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27230D
Deuteranopia (green-blind)
#231F11
Tritanopia (blue-blind)
#002621
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #02270f;
/* rgb */ color: rgb(2, 39, 15);
/* oklch */ color: oklch(24.0% 0.061 151.1);
Tailwind
colors: {
  custom: {
    50: '#48614e',
    500: '#02270f',
    950: '#000000',
  },
}
SCSS
$custom: #02270f;
$custom-light: #48614e;
$custom-dark: #000000;
JSON
{
  "hex": "#02270f",
  "rgb": {
    "r": 2,
    "g": 39,
    "b": 15
  },
  "hsl": {
    "h": 141.081,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.2398,
    "c": 0.06138,
    "h": 151.1
  },
  "luminance": 0.01498
}

Semantic roles & 50–950 ramp

primary
#02270F
secondary
#6C184F
accent
#29B4FF
background
#F4F5F4
surface
#E7EAE7
border
#C3C6C3
text
#010501
muted
#777977

Preview Lab

Preview with #02270F

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

Preview Lab → · Contrast checker → · Palette generator →

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