#1F2F07#1F2F07

#1F2F07 is a dark, moderate yellow-green. Relative luminance 0.023; OKLCH L 28.1% C 0.065 H 128.9°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#1F2F07
RGBrgb(31, 47, 7)
HSLhsl(84, 74%, 11%)
HSVhsv(84, 85%, 18%)
CMYKcmyk(34%, 0%, 85.1%, 81.6%)
CIE-LABlab(17.18, -14.33, 21.50)
CIE-LCHlch(17.18, 25.84, 123.68°)
OKLaboklab(28.12% -0.0408 0.0507)
OKLCHoklch(28.12% 0.065 128.9)
XYZxyz(1.6199, 2.3396, 0.5672)
Luminance0.0234 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F07 #17072F
analogous
#2F2B07 #1F2F07 #0B2F07
triadic
#1F2F07 #071F2F #2F071F
tetradic
#1F2F07 #072F2B #17072F #2F070B
square
#1F2F07 #072F2B #17072F #2F070B
split-complementary
#1F2F07 #070B2F #2B072F
monochromatic
#121B04 #121B04 #1F2F07 #42640F #659A17

Accessibility & contrast

On white

14.31
#1F2F07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1F2F07 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F07
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F07#FFFFFF#000000##FFFFFF
##1F2F071.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322B03
Deuteranopia (green-blind)
#302A0A
Tritanopia (blue-blind)
#202C27
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f2f07;
/* rgb */ color: rgb(31, 47, 7);
/* oklch */ color: oklch(28.1% 0.065 128.9);
Tailwind
colors: {
  custom: {
    50: '#5c674a',
    500: '#1f2f07',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f07;
$custom-light: #5c674a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f07",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 7
  },
  "hsl": {
    "h": 84,
    "s": 74.074,
    "l": 10.588
  },
  "oklch": {
    "l": 0.28116,
    "c": 0.06508,
    "h": 128.9
  },
  "luminance": 0.0234
}

Semantic roles & 50–950 ramp

primary
#1F2F07
secondary
#41236F
accent
#37F181
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #1F2F07

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

Preview Lab → · Contrast checker → · Palette generator →

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