#1F230B#1F230B

#1F230B is a very dark, muted yellow-green. Relative luminance 0.015; OKLCH L 24.5% C 0.041 H 117.3°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#1F230B
RGBrgb(31, 35, 11)
HSLhsl(70, 52%, 9%)
HSVhsv(70, 69%, 14%)
CMYKcmyk(11.4%, 0%, 68.6%, 86.3%)
CIE-LABlab(12.72, -6.51, 14.14)
CIE-LCHlch(12.72, 15.56, 114.73°)
OKLaboklab(24.53% -0.0186 0.036)
OKLCHoklch(24.53% 0.041 117.3)
XYZxyz(1.2265, 1.5175, 0.5448)
Luminance0.0152 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F230B #0F0B23
analogous
#231B0B #1F230B #13230B
triadic
#1F230B #0B1F23 #230B1F
tetradic
#1F230B #0B231B #0F0B23 #230B13
square
#1F230B #0B231B #0F0B23 #230B13
split-complementary
#1F230B #0B1323 #1B0B23
monochromatic
#151707 #151707 #1F230B #48521A #718028

Accessibility & contrast

On white

16.11
#1F230B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#1F230B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F230B
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F230B#FFFFFF#000000##FFFFFF
##1F230B1.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262109
Deuteranopia (green-blind)
#25210C
Tritanopia (blue-blind)
#21211E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1f230b;
/* rgb */ color: rgb(31, 35, 11);
/* oklch */ color: oklch(24.5% 0.041 117.3);
Tailwind
colors: {
  custom: {
    50: '#5b5d4b',
    500: '#1f230b',
    950: '#000000',
  },
}
SCSS
$custom: #1f230b;
$custom-light: #5b5d4b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f230b",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 11
  },
  "hsl": {
    "h": 70,
    "s": 52.174,
    "l": 9.02
  },
  "oklch": {
    "l": 0.24532,
    "c": 0.04058,
    "h": 117.3
  },
  "luminance": 0.01518
}

Semantic roles & 50–950 ramp

primary
#1F230B
secondary
#342C5E
accent
#4CDC64
background
#F5F5F4
surface
#E9E9E7
border
#C5C5C3
text
#040401
muted
#797977

Preview Lab

Preview with #1F230B

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

Preview Lab → · Contrast checker → · Palette generator →

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