#1F7233#1F7233

#1F7233 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.8% C 0.125 H 147.7°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#1F7233
RGBrgb(31, 114, 51)
HSLhsl(134, 57%, 28%)
HSVhsv(134, 73%, 45%)
CMYKcmyk(72.8%, 0%, 55.3%, 55.3%)
CIE-LABlab(42.10, -39.07, 27.71)
CIE-LCHlch(42.10, 47.90, 144.65°)
OKLaboklab(48.78% -0.1053 0.0667)
OKLCHoklch(48.78% 0.125 147.7)
XYZxyz(7.1794, 12.5642, 5.1781)
Luminance0.1257 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7233 #721F5E
analogous
#34721F #1F7233 #1F725C
triadic
#1F7233 #331F72 #72331F
tetradic
#1F7233 #1F3472 #721F5E #725C1F
square
#1F7233 #1F3472 #721F5E #725C1F
split-complementary
#1F7233 #5C1F72 #721F34
monochromatic
#07180B #12421D #1F7233 #2CA249 #40CB62

Accessibility & contrast

On white

5.98
#1F7233 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#1F7233 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7233
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7233#FFFFFF#000000##FFFFFF
##1F72331.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#73682D
Deuteranopia (green-blind)
#696138
Tritanopia (blue-blind)
#006F64
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #1f7233;
/* rgb */ color: rgb(31, 114, 51);
/* oklch */ color: oklch(48.8% 0.125 147.7);
Tailwind
colors: {
  custom: {
    50: '#679b6c',
    500: '#1f7233',
    950: '#000000',
  },
}
SCSS
$custom: #1f7233;
$custom-light: #679b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7233",
  "rgb": {
    "r": 31,
    "g": 114,
    "b": 51
  },
  "hsl": {
    "h": 134.458,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.48775,
    "c": 0.1246,
    "h": 147.7
  },
  "luminance": 0.12565
}

Semantic roles & 50–950 ramp

primary
#1F7233
secondary
#A6478F
accent
#47BCE0
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#070E07
muted
#7A7E7A

Preview Lab

Preview with #1F7233

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

Preview Lab → · Contrast checker → · Palette generator →

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