#12381F#12381F

#12381F is a dark, moderate green. Relative luminance 0.031; OKLCH L 30.6% C 0.062 H 152.1°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#12381F
RGBrgb(18, 56, 31)
HSLhsl(141, 51%, 15%)
HSVhsv(141, 68%, 22%)
CMYKcmyk(67.9%, 0%, 44.6%, 78%)
CIE-LABlab(20.27, -20.36, 11.72)
CIE-LCHlch(20.27, 23.49, 150.08°)
OKLaboklab(30.56% -0.0552 0.0292)
OKLCHoklch(30.56% 0.062 152.1)
XYZxyz(1.9108, 3.0557, 1.7852)
Luminance0.0306 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12381F #38122B
analogous
#183812 #12381F #123832
triadic
#12381F #1F1238 #381F12
tetradic
#12381F #121838 #38122B #383212
square
#12381F #121838 #38122B #383212
split-complementary
#12381F #321238 #381218
monochromatic
#07170D #07170D #12381F #216639 #309552

Accessibility & contrast

On white

13.03
#12381F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#12381F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12381F
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12381F#FFFFFF#000000##FFFFFF
##12381F1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38331D
Deuteranopia (green-blind)
#332F21
Tritanopia (blue-blind)
#073732
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #12381f;
/* rgb */ color: rgb(18, 56, 31);
/* oklch */ color: oklch(30.6% 0.062 152.1);
Tailwind
colors: {
  custom: {
    50: '#546f5a',
    500: '#12381f',
    950: '#000000',
  },
}
SCSS
$custom: #12381f;
$custom-light: #546f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#12381f",
  "rgb": {
    "r": 18,
    "g": 56,
    "b": 31
  },
  "hsl": {
    "h": 140.526,
    "s": 51.351,
    "l": 14.51
  },
  "oklch": {
    "l": 0.30563,
    "c": 0.06242,
    "h": 152.1
  },
  "luminance": 0.03056
}

Semantic roles & 50–950 ramp

primary
#12381F
secondary
#71355C
accent
#4DAADB
background
#F5F6F5
surface
#E9ECE9
border
#C5C7C5
text
#030704
muted
#787A79

Preview Lab

Preview with #12381F

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

Preview Lab → · Contrast checker → · Palette generator →

#12381F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva