#0C531B#0C531B

#0C531B is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.8% C 0.110 H 146.0°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#0C531B
RGBrgb(12, 83, 27)
HSLhsl(133, 75%, 19%)
HSVhsv(133, 86%, 33%)
CMYKcmyk(85.5%, 0%, 67.5%, 67.5%)
CIE-LABlab(30.26, -33.98, 26.30)
CIE-LCHlch(30.26, 42.97, 142.26°)
OKLaboklab(38.76% -0.0915 0.0617)
OKLCHoklch(38.76% 0.11 146)
XYZxyz(3.4425, 6.3434, 2.0797)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C531B #530C44
analogous
#20530C #0C531B #0C533E
triadic
#0C531B #1B0C53 #531B0C
tetradic
#0C531B #0C2053 #530C44 #533E0C
square
#0C531B #0C2053 #530C44 #533E0C
split-complementary
#0C531B #3E0C53 #530C20
monochromatic
#041B09 #041E0A #0C531B #14882C #1BBE3E

Accessibility & contrast

On white

9.26
#0C531B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#0C531B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C531B
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C531B#FFFFFF#000000##FFFFFF
##0C531B1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544B15
Deuteranopia (green-blind)
#4D4520
Tritanopia (blue-blind)
#005147
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #0c531b;
/* rgb */ color: rgb(12, 83, 27);
/* oklch */ color: oklch(38.8% 0.110 146.0);
Tailwind
colors: {
  custom: {
    50: '#5a845a',
    500: '#0c531b',
    950: '#000000',
  },
}
SCSS
$custom: #0c531b;
$custom-light: #5a845a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c531b",
  "rgb": {
    "r": 12,
    "g": 83,
    "b": 27
  },
  "hsl": {
    "h": 132.676,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38758,
    "c": 0.11034,
    "h": 146
  },
  "luminance": 0.06344
}

Semantic roles & 50–950 ramp

primary
#0C531B
secondary
#8E2D7A
accent
#36CAF1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B04
muted
#797C79

Preview Lab

Preview with #0C531B

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

Preview Lab → · Contrast checker → · Palette generator →

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