#1F2F09#1F2F09

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

Color values

HEX#1F2F09
RGBrgb(31, 47, 9)
HSLhsl(85, 68%, 11%)
HSVhsv(85, 81%, 18%)
CMYKcmyk(34%, 0%, 80.9%, 81.6%)
CIE-LABlab(17.20, -14.13, 20.71)
CIE-LCHlch(17.20, 25.07, 124.30°)
OKLaboklab(28.14% -0.04 0.0488)
OKLCHoklch(28.14% 0.063 129.4)
XYZxyz(1.6309, 2.3440, 0.6249)
Luminance0.0234 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F09 #19092F
analogous
#2F2C09 #1F2F09 #0C2F09
triadic
#1F2F09 #091F2F #2F091F
tetradic
#1F2F09 #092F2C #19092F #2F090C
square
#1F2F09 #092F2C #19092F #2F090C
split-complementary
#1F2F09 #090C2F #2C092F
monochromatic
#111A05 #111A05 #1F2F09 #416213 #63961D

Accessibility & contrast

On white

14.30
#1F2F09 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2F09
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F09#FFFFFF#000000##FFFFFF
##1F2F091.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322B05
Deuteranopia (green-blind)
#2F2A0C
Tritanopia (blue-blind)
#202D27
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f2f09;
/* rgb */ color: rgb(31, 47, 9);
/* oklch */ color: oklch(28.1% 0.063 129.4);
Tailwind
colors: {
  custom: {
    50: '#5c674b',
    500: '#1f2f09',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f09;
$custom-light: #5c674b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f09",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 9
  },
  "hsl": {
    "h": 85.263,
    "s": 67.857,
    "l": 10.98
  },
  "oklch": {
    "l": 0.28139,
    "c": 0.06311,
    "h": 129.4
  },
  "luminance": 0.02344
}

Semantic roles & 50–950 ramp

primary
#1F2F09
secondary
#44276D
accent
#3DEB86
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #1F2F09

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

Preview Lab → · Contrast checker → · Palette generator →

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