#283F18#283F18

#283F18 is a dark, moderate yellow-green. Relative luminance 0.041; OKLCH L 33.8% C 0.069 H 134.1°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#283F18
RGBrgb(40, 63, 24)
HSLhsl(95, 45%, 17%)
HSVhsv(95, 62%, 25%)
CMYKcmyk(36.5%, 0%, 61.9%, 75.3%)
CIE-LABlab(23.91, -17.28, 20.85)
CIE-LCHlch(23.91, 27.07, 129.65°)
OKLaboklab(33.81% -0.0479 0.0494)
OKLCHoklch(33.81% 0.069 134.1)
XYZxyz(2.8174, 4.0720, 1.5015)
Luminance0.0407 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283F18 #2F183F
analogous
#3C3F18 #283F18 #183F1C
triadic
#283F18 #18283F #3F1828
tetradic
#283F18 #183C3F #2F183F #3F1C18
square
#283F18 #183C3F #2F183F #3F1C18
split-complementary
#283F18 #1C183F #3F183C
monochromatic
#0E1608 #0E1608 #283F18 #446B29 #60983A

Accessibility & contrast

On white

11.57
#283F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#283F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283F18
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283F18#FFFFFF#000000##FFFFFF
##283F181.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423A14
Deuteranopia (green-blind)
#3E381B
Tritanopia (blue-blind)
#283D36
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #283f18;
/* rgb */ color: rgb(40, 63, 24);
/* oklch */ color: oklch(33.8% 0.069 134.1);
Tailwind
colors: {
  custom: {
    50: '#637456',
    500: '#283f18',
    950: '#000000',
  },
}
SCSS
$custom: #283f18;
$custom-light: #637456;
$custom-dark: #000000;
JSON
{
  "hex": "#283f18",
  "rgb": {
    "r": 40,
    "g": 63,
    "b": 24
  },
  "hsl": {
    "h": 95.385,
    "s": 44.828,
    "l": 17.059
  },
  "oklch": {
    "l": 0.33813,
    "c": 0.06877,
    "h": 134.1
  },
  "luminance": 0.04072
}

Semantic roles & 50–950 ramp

primary
#283F18
secondary
#5E3D75
accent
#53D5A0
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#050803
muted
#7A7B78

Preview Lab

Preview with #283F18

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

Preview Lab → · Contrast checker → · Palette generator →

#283F18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva