#0C381C#0C381C

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

Color values

HEX#0C381C
RGBrgb(12, 56, 28)
HSLhsl(142, 65%, 13%)
HSVhsv(142, 79%, 22%)
CMYKcmyk(78.6%, 0%, 50%, 78%)
CIE-LABlab(20.00, -22.53, 13.27)
CIE-LCHlch(20.00, 26.15, 149.50°)
OKLaboklab(30.27% -0.0608 0.0328)
OKLCHoklch(30.27% 0.069 151.6)
XYZxyz(1.7752, 2.9902, 1.5820)
Luminance0.0299 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C381C #380C28
analogous
#12380C #0C381C #0C3832
triadic
#0C381C #1C0C38 #381C0C
tetradic
#0C381C #0C1238 #380C28 #38320C
square
#0C381C #0C1238 #380C28 #38320C
split-complementary
#0C381C #320C38 #380C12
monochromatic
#05190D #05190D #0C381C #176A35 #229D4E

Accessibility & contrast

On white

13.14
#0C381C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C381C
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C381C#FFFFFF#000000##FFFFFF
##0C381C1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38331A
Deuteranopia (green-blind)
#332F1E
Tritanopia (blue-blind)
#003731
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #0c381c;
/* rgb */ color: rgb(12, 56, 28);
/* oklch */ color: oklch(30.3% 0.069 151.6);
Tailwind
colors: {
  custom: {
    50: '#526f58',
    500: '#0c381c',
    950: '#000000',
  },
}
SCSS
$custom: #0c381c;
$custom-light: #526f58;
$custom-dark: #000000;
JSON
{
  "hex": "#0c381c",
  "rgb": {
    "r": 12,
    "g": 56,
    "b": 28
  },
  "hsl": {
    "h": 141.818,
    "s": 64.706,
    "l": 13.333
  },
  "oklch": {
    "l": 0.30272,
    "c": 0.06904,
    "h": 151.6
  },
  "luminance": 0.0299
}

Semantic roles & 50–950 ramp

primary
#0C381C
secondary
#742C5A
accent
#40ABE8
background
#F4F6F5
surface
#E7ECE9
border
#C3C7C5
text
#020703
muted
#787A78

Preview Lab

Preview with #0C381C

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

Preview Lab → · Contrast checker → · Palette generator →

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