#0C170B#0C170B

#0C170B is a very dark, muted green. Relative luminance 0.007; OKLCH L 19.0% C 0.029 H 142.4°. Best body text is #FFFFFF at 18.37:1 contrast (WCAG AA passes).

Color values

HEX#0C170B
RGBrgb(12, 23, 11)
HSLhsl(115, 35%, 7%)
HSVhsv(115, 52%, 9%)
CMYKcmyk(47.8%, 0%, 52.2%, 91%)
CIE-LABlab(6.46, -6.61, 5.03)
CIE-LCHlch(6.46, 8.30, 142.74°)
OKLaboklab(18.98% -0.0227 0.0175)
OKLCHoklch(18.98% 0.029 142.4)
XYZxyz(0.5184, 0.7151, 0.4273)
Luminance0.0072 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C170B #160B17
analogous
#12170B #0C170B #0B1710
triadic
#0C170B #0B0C17 #170B0C
tetradic
#0C170B #0B1217 #160B17 #17100B
square
#0C170B #0B1217 #160B17 #17100B
split-complementary
#0C170B #100B17 #170B12
monochromatic
#0B150A #0B150A #0C170B #22401F #376A33

Accessibility & contrast

On white

18.37
#0C170B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#0C170B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C170B
18.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C170B#FFFFFF#000000##FFFFFF
##0C170B1.0018.371.1418.37
#FFFFFF18.371.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18150A
Deuteranopia (green-blind)
#16140C
Tritanopia (blue-blind)
#0B1614
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #0c170b;
/* rgb */ color: rgb(12, 23, 11);
/* oklch */ color: oklch(19.0% 0.029 142.4);
Tailwind
colors: {
  custom: {
    50: '#4c534b',
    500: '#0c170b',
    950: '#000000',
  },
}
SCSS
$custom: #0c170b;
$custom-light: #4c534b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c170b",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 11
  },
  "hsl": {
    "h": 115,
    "s": 35.294,
    "l": 6.667
  },
  "oklch": {
    "l": 0.18975,
    "c": 0.02862,
    "h": 142.4
  },
  "luminance": 0.00715
}

Semantic roles & 50–950 ramp

primary
#0C170B
secondary
#4C2F4E
accent
#5CCBC2
background
#F4F4F4
surface
#E7E7E7
border
#C3C3C3
text
#010201
muted
#777877

Preview Lab

Preview with #0C170B

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

Preview Lab → · Contrast checker → · Palette generator →

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