#1F2C07#1F2C07

#1F2C07 is a dark, moderate yellow-green. Relative luminance 0.021; OKLCH L 27.2% C 0.060 H 126.8°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#1F2C07
RGBrgb(31, 44, 7)
HSLhsl(81, 73%, 10%)
HSVhsv(81, 84%, 17%)
CMYKcmyk(29.5%, 0%, 84.1%, 82.7%)
CIE-LABlab(16.04, -12.59, 20.10)
CIE-LCHlch(16.04, 23.72, 122.06°)
OKLaboklab(27.2% -0.0361 0.0483)
OKLCHoklch(27.2% 0.06 126.8)
XYZxyz(1.5041, 2.1080, 0.5286)
Luminance0.0211 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C07 #14072C
analogous
#2C2607 #1F2C07 #0D2C07
triadic
#1F2C07 #071F2C #2C071F
tetradic
#1F2C07 #072C26 #14072C #2C070D
square
#1F2C07 #072C26 #14072C #2C070D
split-complementary
#1F2C07 #070D2C #26072C
monochromatic
#131A04 #131A04 #1F2C07 #44610F #699618

Accessibility & contrast

On white

14.77
#1F2C07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1F2C07 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C07
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C07#FFFFFF#000000##FFFFFF
##1F2C071.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2803
Deuteranopia (green-blind)
#2D280A
Tritanopia (blue-blind)
#212A25
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f2c07;
/* rgb */ color: rgb(31, 44, 7);
/* oklch */ color: oklch(27.2% 0.060 126.8);
Tailwind
colors: {
  custom: {
    50: '#5c654a',
    500: '#1f2c07',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c07;
$custom-light: #5c654a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c07",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 7
  },
  "hsl": {
    "h": 81.081,
    "s": 72.549,
    "l": 10
  },
  "oklch": {
    "l": 0.27196,
    "c": 0.06025,
    "h": 126.8
  },
  "luminance": 0.02108
}

Semantic roles & 50–950 ramp

primary
#1F2C07
secondary
#3D236C
accent
#39EF79
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040501
muted
#797A77

Preview Lab

Preview with #1F2C07

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

Preview Lab → · Contrast checker → · Palette generator →

#1F2C07 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva