#1F330C

A color in the Green family

#1f330c is a color in the Green family: RGB(31, 51, 12), HSL(91°, 62%, 12%), CMYK(39%, 0%, 76%, 80%). Closest named color: darkslategray. Contrast is 13.66:1 on white and 1.54:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#1f330c
RGBrgb(31 51 12)
RGB (legacy)rgb(31, 51, 12)
RGB %rgb(12% 20% 5%)
HSLhsl(91 62% 12%)
HSV / HSBhsv(91, 76%, 20%)
HWBhwb(91 5% 80%)
CMYKcmyk(39%, 0%, 76%, 80%)
CIELAB (D50)lab(18.8 -14.37 21.03)
LCHlch(18.8 25.47 124.33)
OKLaboklab(0.294 -0.0451 0.0494)
OKLCHoklch(0.294 0.0669 132.37)
Decimal2044684

Properties

Color ToneGreen
Closest named colordarkslategray ΔE 12.5
Closest web-safe color#333300
Hue91°
Saturation (HSL / HSV)62% / 76%
Lightness (HSL)12%
Brightness or Value (HSV)20%
Luminance (Rec.601 / Rec.709)16% / 17%
Relative luminance (WCAG)0.0269
Red / Green / Blue31 / 51 / 12

WCAG 2.2 Contrast Ratio

On White (#ffffff)
13.66:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.54:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 100.1 / 0 · As background with white / black text: Lc -103.2 / 0

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #1f330c;
  --color-brand-oklch: oklch(29.4% 0.0669 132.37);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(31 51 12 / 50%); }
/* Tailwind CSS */
<div class="bg-[#1f330c] text-[#1f330c] border-[#1f330c]">