#04230C#04230C

#04230C is a very dark, muted green. Relative luminance 0.013; OKLCH L 22.6% C 0.057 H 148.9°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#04230C
RGBrgb(4, 35, 12)
HSLhsl(135, 79%, 8%)
HSVhsv(135, 89%, 14%)
CMYKcmyk(88.6%, 0%, 65.7%, 86.3%)
CIE-LABlab(10.95, -17.82, 10.99)
CIE-LCHlch(10.95, 20.93, 148.35°)
OKLaboklab(22.63% -0.0487 0.0294)
OKLCHoklch(22.63% 0.057 148.9)
XYZxyz(0.7174, 1.2543, 0.5521)
Luminance0.0125 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04230C #23041B
analogous
#0B2304 #04230C #04231B
triadic
#04230C #0C0423 #230C04
tetradic
#04230C #040B23 #23041B #231B04
square
#04230C #040B23 #23041B #231B04
split-complementary
#04230C #1B0423 #23040B
monochromatic
#031B09 #031B09 #04230C #0A5A1F #119132

Accessibility & contrast

On white

16.79
#04230C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#04230C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04230C
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04230C#FFFFFF#000000##FFFFFF
##04230C1.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#231F0A
Deuteranopia (green-blind)
#201C0E
Tritanopia (blue-blind)
#00221E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #04230c;
/* rgb */ color: rgb(4, 35, 12);
/* oklch */ color: oklch(22.6% 0.057 148.9);
Tailwind
colors: {
  custom: {
    50: '#485e4c',
    500: '#04230c',
    950: '#000000',
  },
}
SCSS
$custom: #04230c;
$custom-light: #485e4c;
$custom-dark: #000000;
JSON
{
  "hex": "#04230c",
  "rgb": {
    "r": 4,
    "g": 35,
    "b": 12
  },
  "hsl": {
    "h": 135.484,
    "s": 79.487,
    "l": 7.647
  },
  "oklch": {
    "l": 0.22627,
    "c": 0.05686,
    "h": 148.9
  },
  "luminance": 0.01254
}

Semantic roles & 50–950 ramp

primary
#04230C
secondary
#661D53
accent
#32C3F6
background
#F4F5F4
surface
#E6E9E7
border
#C2C5C3
text
#000401
muted
#777977

Preview Lab

Preview with #04230C

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

Preview Lab → · Contrast checker → · Palette generator →

#04230C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva