#0C381B#0C381B

#0C381B is a dark, moderate green. Relative luminance 0.030; OKLCH L 30.3% C 0.070 H 150.9°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#0C381B
RGBrgb(12, 56, 27)
HSLhsl(140, 65%, 13%)
HSVhsv(140, 79%, 22%)
CMYKcmyk(78.6%, 0%, 51.8%, 78%)
CIE-LABlab(19.99, -22.74, 13.89)
CIE-LCHlch(19.99, 26.65, 148.59°)
OKLaboklab(30.25% -0.0613 0.0342)
OKLCHoklch(30.25% 0.07 150.9)
XYZxyz(1.7635, 2.9855, 1.5200)
Luminance0.0299 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C381B #380C29
analogous
#13380C #0C381B #0C3831
triadic
#0C381B #1B0C38 #381B0C
tetradic
#0C381B #0C1338 #380C29 #38310C
square
#0C381B #0C1338 #380C29 #38310C
split-complementary
#0C381B #310C38 #380C13
monochromatic
#05190C #05190C #0C381B #176A33 #229D4C

Accessibility & contrast

On white

13.15
#0C381B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#0C381B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C381B
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C381B#FFFFFF#000000##FFFFFF
##0C381B1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383319
Deuteranopia (green-blind)
#332F1D
Tritanopia (blue-blind)
#003731
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #0c381b;
/* rgb */ color: rgb(12, 56, 27);
/* oklch */ color: oklch(30.3% 0.070 150.9);
Tailwind
colors: {
  custom: {
    50: '#526f57',
    500: '#0c381b',
    950: '#000000',
  },
}
SCSS
$custom: #0c381b;
$custom-light: #526f57;
$custom-dark: #000000;
JSON
{
  "hex": "#0c381b",
  "rgb": {
    "r": 12,
    "g": 56,
    "b": 27
  },
  "hsl": {
    "h": 140.455,
    "s": 64.706,
    "l": 13.333
  },
  "oklch": {
    "l": 0.3025,
    "c": 0.07019,
    "h": 150.9
  },
  "luminance": 0.02986
}

Semantic roles & 50–950 ramp

primary
#0C381B
secondary
#742C5B
accent
#40AFE8
background
#F4F6F5
surface
#E7ECE9
border
#C3C7C5
text
#020703
muted
#787A78

Preview Lab

Preview with #0C381B

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

Preview Lab → · Contrast checker → · Palette generator →

#0C381B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva